summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/qualified-names-print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/qualified-names-print.cpp')
-rw-r--r--test/SemaCXX/qualified-names-print.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaCXX/qualified-names-print.cpp b/test/SemaCXX/qualified-names-print.cpp
new file mode 100644
index 0000000..1cb19f0
--- /dev/null
+++ b/test/SemaCXX/qualified-names-print.cpp
@@ -0,0 +1,15 @@
+// RUN: clang-cc -ast-print %s 2>&1 | grep "N::M::X<INT>::value"
+namespace N {
+ namespace M {
+ template<typename T>
+ struct X {
+ enum { value };
+ };
+ }
+}
+
+typedef int INT;
+
+int test() {
+ return N::M::X<INT>::value;
+}
OpenPOWER on IntegriCloud