summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/alias-template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/alias-template.cpp')
-rw-r--r--clang/test/SemaCXX/alias-template.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/alias-template.cpp b/clang/test/SemaCXX/alias-template.cpp
index bcfe428c69d..b6256103ef8 100644
--- a/clang/test/SemaCXX/alias-template.cpp
+++ b/clang/test/SemaCXX/alias-template.cpp
@@ -35,8 +35,8 @@ namespace VariableLengthArrays {
template<typename Z> using T = int[n]; // expected-error {{variable length array declaration not allowed at file scope}}
const int m = 42;
- template<typename Z> using U = int[m]; // expected-note {{previous definition}}
- template<typename Z> using U = int[42]; // ok
+ template<typename Z> using U = int[m];
+ template<typename Z> using U = int[42]; // expected-note {{previous definition}}
template<typename Z> using U = int; // expected-error {{type alias template redefinition with different types ('int' vs 'int [42]')}}
}
OpenPOWER on IntegriCloud