From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/Parser/cxx-class.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/Parser/cxx-class.cpp') diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp index 57831a4..f863bd1 100644 --- a/test/Parser/cxx-class.cpp +++ b/test/Parser/cxx-class.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s class C; class C { public: @@ -14,7 +14,11 @@ protected: public: void m() { int l = 2; - } + }; + + template void mt(T) { }; + ; // expected-warning{{extra ';' inside a class}} + virtual int vf() const volatile = 0; private: -- cgit v1.1