aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/enum-argument.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-05-27 19:21:29 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-05-27 19:21:29 +0000
commit599fe7ccc0cbfe761b54039fcc2a7c62d7f84934 (patch)
tree0404cec178bf18b5d92bd6b4b7603f33ea2a792e /test/SemaTemplate/enum-argument.cpp
parented961e7fffc268eeace169869f5a059bcbd5fcbd (diff)
Fix the type of a enum non-type template argument within the instantiation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/enum-argument.cpp')
-rw-r--r--test/SemaTemplate/enum-argument.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/enum-argument.cpp b/test/SemaTemplate/enum-argument.cpp
new file mode 100644
index 0000000000..101a1d0cd9
--- /dev/null
+++ b/test/SemaTemplate/enum-argument.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+enum Enum { val = 1 };
+template <Enum v> struct C {
+ typedef C<v> Self;
+};
+template struct C<val>;