diff options
Diffstat (limited to 'clang/test/SemaCXX/qualified-names-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/qualified-names-print.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/qualified-names-print.cpp b/clang/test/SemaCXX/qualified-names-print.cpp new file mode 100644 index 0000000..2099268 --- /dev/null +++ b/clang/test/SemaCXX/qualified-names-print.cpp @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -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; +} |