From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CXX/temp/temp.param/p4.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 clang/test/CXX/temp/temp.param/p4.cpp (limited to 'clang/test/CXX/temp/temp.param/p4.cpp') diff --git a/clang/test/CXX/temp/temp.param/p4.cpp b/clang/test/CXX/temp/temp.param/p4.cpp new file mode 100644 index 0000000..809fb20 --- /dev/null +++ b/clang/test/CXX/temp/temp.param/p4.cpp @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +class X; + +// C++ [temp.param]p4 +typedef int INT; +enum E { enum1, enum2 }; +template struct A1; +template struct A2; +template struct A3; +template struct A4; +template struct A5; +template struct A6; +template struct A7; +template struct A8; +template struct A9; +template struct A10; + +template struct A11; // expected-error{{a non-type template parameter cannot have type 'float'}} + +template struct A12; +template struct A13; -- cgit v1.2.3