summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/MicrosoftExtensions.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/clang/test/Parser/MicrosoftExtensions.cpp b/clang/test/Parser/MicrosoftExtensions.cpp
index 933231d5f70..292d3e1239d 100644
--- a/clang/test/Parser/MicrosoftExtensions.cpp
+++ b/clang/test/Parser/MicrosoftExtensions.cpp
@@ -174,26 +174,36 @@ private:
};
int __if_exists_test() {
-
int b=0;
-
-
__if_exists(IF_EXISTS::Type) {
b++;
b++;
}
-
__if_exists(IF_EXISTS::Type_not) {
this wont compile.
}
-
__if_not_exists(IF_EXISTS::Type) {
this wont compile.
}
-
__if_not_exists(IF_EXISTS::Type_not) {
b++;
b++;
}
+}
+
+
+__if_exists(IF_EXISTS::Type) {
+ int var23;
+}
+
+__if_exists(IF_EXISTS::Type_not) {
+ this wont compile.
+}
+
+__if_not_exists(IF_EXISTS::Type) {
+ this wont compile.
+}
+__if_not_exists(IF_EXISTS::Type_not) {
+ int var244;
}
OpenPOWER on IntegriCloud