From 84ef8990b8f6b0f9ab57f8e2b7372dad5575364f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 14 Oct 2011 20:41:13 +0000 Subject: [PATCH] Test for r141985. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141998 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/cxx98-compat.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/SemaCXX/cxx98-compat.cpp diff --git a/test/SemaCXX/cxx98-compat.cpp b/test/SemaCXX/cxx98-compat.cpp new file mode 100644 index 0000000000..37815d4797 --- /dev/null +++ b/test/SemaCXX/cxx98-compat.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++0x -Wc++98-compat -verify %s + +template // expected-warning {{variadic templates are incompatible with C++98}} +class Variadic1 {}; + +template class ...T> // expected-warning {{variadic templates are incompatible with C++98}} +class Variadic2 {}; + +template // expected-warning {{variadic templates are incompatible with C++98}} +class Variadic3 {}; -- 2.50.1