summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-17 00:36:09 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-17 00:36:09 +0000
commite321795c60c58756a58da7fadb180747d1c9d632 (patch)
tree2812295c698ecf390a4417304ae20fa7eb3df844 /clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
parent0f79160bb739fbab6030fa0857a3e663d64e51eb (diff)
downloadbcm5719-llvm-e321795c60c58756a58da7fadb180747d1c9d632.tar.gz
bcm5719-llvm-e321795c60c58756a58da7fadb180747d1c9d632.zip
Remove a non-gcc-compatible extension that would apply attributes on declarations without a declarator to structs. Add a warning for ignored attributes. Patch by Michael Han.
llvm-svn: 146796
Diffstat (limited to 'clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
index a0b55804b94..bbdf489796b 100644
--- a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
@@ -162,8 +162,7 @@ struct TestUnexpandedTTP {
// Test for unexpanded parameter packs in declarations.
template<typename T, typename... Types>
// FIXME: this should test that the diagnostic reads "type contains..."
-alignas(Types) // expected-error{{expression contains unexpanded parameter pack 'Types'}}
-struct TestUnexpandedDecls : T{
+struct alignas(Types) TestUnexpandedDecls : T{ // expected-error{{expression contains unexpanded parameter pack 'Types'}}
void member_function(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
void member_function () throw(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
operator Types() const; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
OpenPOWER on IntegriCloud