Douglas Gregor | 1f38106 | 2011-01-26 20:35:32 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s |
| 2 | |
Douglas Gregor | b3df138 | 2011-10-12 19:26:40 +0000 | [diff] [blame^] | 3 | inline namespace N { // expected-warning{{inline namespaces are a C++11 feature}} |
Douglas Gregor | 1f38106 | 2011-01-26 20:35:32 +0000 | [diff] [blame] | 4 | struct X { |
Douglas Gregor | b3df138 | 2011-10-12 19:26:40 +0000 | [diff] [blame^] | 5 | template<typename ...Args> // expected-warning{{variadic templates are a C++11 extension}} |
| 6 | void f(Args &&...) &; // expected-warning{{rvalue references are a C++11 extension}} \ |
| 7 | // expected-warning{{reference qualifiers on functions are a C++11 extension}} |
Douglas Gregor | 1f38106 | 2011-01-26 20:35:32 +0000 | [diff] [blame] | 8 | }; |
| 9 | } |
| 10 | |