1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | |
3 | union x { |
4 | virtual void f(); // expected-error {{unions cannot have virtual functions}} |
5 | }; |
6 |
1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | |
3 | union x { |
4 | virtual void f(); // expected-error {{unions cannot have virtual functions}} |
5 | }; |
6 |