1 // RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify
2 
3 static union {     // expected-warning {{declaration does not declare anything}}
4   virtual int a(); // expected-error {{unions cannot have virtual functions}}
5 };
6