From eed3d4c73e2cc2beef1215c1eaacf9215c458c99 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Wed, 27 May 2009 19:21:29 +0000 Subject: Fix the type of a enum non-type template argument within the instantiation. llvm-svn: 72489 --- clang/test/SemaTemplate/enum-argument.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/SemaTemplate/enum-argument.cpp (limited to 'clang/test/SemaTemplate/enum-argument.cpp') diff --git a/clang/test/SemaTemplate/enum-argument.cpp b/clang/test/SemaTemplate/enum-argument.cpp new file mode 100644 index 00000000000..101a1d0cd9d --- /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 struct C { + typedef C Self; +}; +template struct C; -- cgit v1.2.3