aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-05-03 23:44:54 +0000
committerDouglas Gregor <dgregor@apple.com>2013-05-03 23:44:54 +0000
commit79bef7aea4419b75e2cca0f121c6e1a4232bb03c (patch)
treeb036ed4e778643a3e1193c98ed75db678c9e57e4 /test
parentd99990df0b4aca43a0315b2928ff1b8baf704052 (diff)
<rdar://problem/13806270> A template argument list is a constant-evaluated context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaTemplate/temp_arg_nontype.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaTemplate/temp_arg_nontype.cpp b/test/SemaTemplate/temp_arg_nontype.cpp
index 210b5e463f..24509524b2 100644
--- a/test/SemaTemplate/temp_arg_nontype.cpp
+++ b/test/SemaTemplate/temp_arg_nontype.cpp
@@ -337,3 +337,12 @@ namespace rdar13000548 {
}
}
+
+namespace rdar13806270 {
+ template <unsigned N> class X { };
+ const unsigned value = 32;
+ struct Y {
+ X<value + 1> x;
+ };
+ void foo() {}
+}