Richard Smith | 41be673 | 2011-10-14 20:48:27 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wc++98-compat -verify %s |
Richard Smith | 84ef899 | 2011-10-14 20:41:13 +0000 | [diff] [blame] | 2 | |
| 3 | template<typename ...T> // expected-warning {{variadic templates are incompatible with C++98}} |
| 4 | class Variadic1 {}; |
| 5 | |
| 6 | template<template<typename> class ...T> // expected-warning {{variadic templates are incompatible with C++98}} |
| 7 | class Variadic2 {}; |
| 8 | |
| 9 | template<int ...I> // expected-warning {{variadic templates are incompatible with C++98}} |
| 10 | class Variadic3 {}; |
Richard Smith | 41be673 | 2011-10-14 20:48:27 +0000 | [diff] [blame^] | 11 | |
| 12 | int alignas(8) with_alignas; // expected-warning {{'alignas' is incompatible with C++98}} |
| 13 | int with_attribute [[ ]]; // expected-warning {{attributes are incompatible with C++98}} |