summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-06 08:38:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:57 (GMT)
commit251a1f02a0ae7eb93690dd0daad8575a3c0451b3 (patch)
tree590be5032918bbb7fe758b35507fbc3f8ad253b3 /Tests
parent53fe7773e6335b71161310a2c948bc99145ee59e (diff)
downloadCMake-251a1f02a0ae7eb93690dd0daad8575a3c0451b3.zip
CMake-251a1f02a0ae7eb93690dd0daad8575a3c0451b3.tar.gz
CMake-251a1f02a0ae7eb93690dd0daad8575a3c0451b3.tar.bz2
Features: Add cxx_local_type_template_args.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_local_type_template_args.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_local_type_template_args.cpp b/Tests/CompileFeatures/cxx_local_type_template_args.cpp
new file mode 100644
index 0000000..802ea7a
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_local_type_template_args.cpp
@@ -0,0 +1,21 @@
+
+template <typename T>
+class X { };
+template <typename T>
+void f(T t) { }
+struct {} unnamed_obj;
+void f() {
+ struct A { };
+ enum { e1 };
+ typedef struct {} B;
+ B b;
+ X<A> x1;
+ X<A*> x2;
+ X<B> x3;
+ f(e1);
+ f(unnamed_obj);
+ f(b);
+ (void)x1;
+ (void)x2;
+ (void)x3;
+}