1 // RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
2 // expected-no-diagnostics
7 void test_if_exists_stmts() {
13 __if_exists(Type_not
) {
14 this will
not compile
.
16 __if_not_exists(Type
) {
17 this will
not compile
.
19 __if_not_exists(Type_not
) {
25 int if_exists_creates_no_scope() {
27 int x
; // 'x' is declared in the parent scope.
29 __if_not_exists(Type_not
) {
39 __if_exists(Type_not
) {
40 this will
not compile
.
43 __if_not_exists(Type
) {
44 this will
not compile
.
47 __if_not_exists(Type_not
) {
51 void test_if_exists_init_list() {
55 __if_exists(Type
) {2, }
61 __if_exists(Type_not
) { this will
not compile
}
67 __if_not_exists(Type_not
) {2, }
73 __if_not_exists(Type
) { this will
not compile
}
80 void test_nested_if_exists() {
83 __if_not_exists(Type_not
) {