[cfe-commits] r141998 - /cfe/trunk/test/SemaCXX/cxx98-compat.cpp

Richard Smith richard-llvm at metafoo.co.uk
Fri Oct 14 13:41:13 PDT 2011


Author: rsmith
Date: Fri Oct 14 15:41:13 2011
New Revision: 141998

URL: http://llvm.org/viewvc/llvm-project?rev=141998&view=rev
Log:
Test for r141985.

Added:
    cfe/trunk/test/SemaCXX/cxx98-compat.cpp

Added: cfe/trunk/test/SemaCXX/cxx98-compat.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx98-compat.cpp?rev=141998&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx98-compat.cpp (added)
+++ cfe/trunk/test/SemaCXX/cxx98-compat.cpp Fri Oct 14 15:41:13 2011
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++0x -Wc++98-compat -verify %s
+
+template<typename ...T>  // expected-warning {{variadic templates are incompatible with C++98}}
+class Variadic1 {};
+
+template<template<typename> class ...T>  // expected-warning {{variadic templates are incompatible with C++98}}
+class Variadic2 {};
+
+template<int ...I>  // expected-warning {{variadic templates are incompatible with C++98}}
+class Variadic3 {};





More information about the cfe-commits mailing list