summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/local-classes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/local-classes.cpp')
-rw-r--r--test/SemaCXX/local-classes.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/local-classes.cpp b/test/SemaCXX/local-classes.cpp
index 6799e58..500b219 100644
--- a/test/SemaCXX/local-classes.cpp
+++ b/test/SemaCXX/local-classes.cpp
@@ -30,3 +30,12 @@ namespace PR6383 {
compare_and_set2 (false, gross);
}
}
+
+namespace Templates {
+ template<int Value>
+ void f() {
+ struct Inner {
+ static int getValue() { return Value; }
+ };
+ }
+}
OpenPOWER on IntegriCloud