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