diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/Parser/cxx11-brace-initializers.cpp | |
parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) |
Vendor import of clang trunk r178860:vendor/clang/clang-trunk-r178860
Notes
Notes:
svn path=/vendor/clang/dist/; revision=249261
svn path=/vendor/clang/clang-trunk-r178860/; revision=249262; tag=vendor/clang/clang-trunk-r178860
Diffstat (limited to 'test/Parser/cxx11-brace-initializers.cpp')
-rw-r--r-- | test/Parser/cxx11-brace-initializers.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Parser/cxx11-brace-initializers.cpp b/test/Parser/cxx11-brace-initializers.cpp index a2102056bc1a..7926320fd021 100644 --- a/test/Parser/cxx11-brace-initializers.cpp +++ b/test/Parser/cxx11-brace-initializers.cpp @@ -14,3 +14,14 @@ void test1() f(0, {1, 1}, 0); } + +namespace PR14948 { + template<typename T> struct Q { static T x; }; + + struct X {}; + template<> X Q<X>::x {}; + template<> int Q<int[]>::x[] { 1, 2, 3 }; + template<> int Q<int>::x { 1 }; + + template<typename T> T Q<T>::x {}; +} |