1// RUN: %clang_cc1 -std=c++11 %s -verify 2 3struct A {}; 4struct B : [[]] A {}; 5struct C : [[]] virtual A {}; 6struct D : [[]] public virtual A {}; 7struct E : public [[]] virtual A {}; // expected-error {{an attribute list cannot appear here}} 8struct F : virtual [[]] public A {}; // expected-error {{an attribute list cannot appear here}} 9struct G : [[noreturn]] A {}; // expected-error {{'noreturn' attribute cannot be applied to a base specifier}} 10struct H : [[unknown::foobar]] A {}; // expected-warning {{unknown attribute 'foobar' ignored}} 11