commit | eed3d4c73e2cc2beef1215c1eaacf9215c458c99 | [log] [tgz] |
---|---|---|
author | Sebastian Redl <sebastian.redl@getdesigned.at> | Wed May 27 19:21:29 2009 +0000 |
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | Wed May 27 19:21:29 2009 +0000 |
tree | 1a74416a9fb1eaad3f6ef35dc1a9e394d7eecd83 | |
parent | 4db1631a437c03aab23d8857ab751607d8e3e5d0 [diff] [blame] |
Fix the type of a enum non-type template argument within the instantiation. llvm-svn: 72489
diff --git a/clang/test/SemaTemplate/enum-argument.cpp b/clang/test/SemaTemplate/enum-argument.cpp new file mode 100644 index 0000000..101a1d0 --- /dev/null +++ b/clang/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>;