You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
572 B
8 lines
572 B
7 months ago
|
// RUN: %clang_cc1 -triple i386-pc-win32 %s -fsyntax-only -verify -fms-extensions -Wno-microsoft -std=c++11
|
||
|
|
||
|
struct __declspec(novtable) S {};
|
||
|
enum __declspec(novtable) E {}; // expected-warning{{'novtable' attribute only applies to classes}}
|
||
|
int __declspec(novtable) I; // expected-warning{{'novtable' attribute only applies to classes}}
|
||
|
typedef struct T __declspec(novtable) U; // expected-warning{{'novtable' attribute only applies to classes}}
|
||
|
auto z = []() __declspec(novtable) { return nullptr; }; // expected-warning{{'novtable' attribute only applies to classes}}
|