diff options
Diffstat (limited to 'test/Parser/MicrosoftExtensions.cpp')
-rw-r--r-- | test/Parser/MicrosoftExtensions.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/test/Parser/MicrosoftExtensions.cpp b/test/Parser/MicrosoftExtensions.cpp index d1e8866929..fd38dca194 100644 --- a/test/Parser/MicrosoftExtensions.cpp +++ b/test/Parser/MicrosoftExtensions.cpp @@ -171,27 +171,27 @@ void redundant_typename() { int k = typename var;// expected-error {{expected a qualified name after 'typename'}} } -
-__interface MicrosoftInterface;
-__interface MicrosoftInterface {
- void foo1() = 0;
- virtual void foo2() = 0;
-};
-
-__interface MicrosoftDerivedInterface : public MicrosoftInterface {
- void foo1();
- void foo2() override;
- void foo3();
-};
-
-void interface_test() {
- MicrosoftInterface* a;
- a->foo1();
- MicrosoftDerivedInterface* b;
- b->foo2();
-}
-
-__int64 x7 = __int64(0);
+ +__interface MicrosoftInterface; +__interface MicrosoftInterface { + void foo1() = 0; + virtual void foo2() = 0; +}; + +__interface MicrosoftDerivedInterface : public MicrosoftInterface { + void foo1(); + void foo2() override; + void foo3(); +}; + +void interface_test() { + MicrosoftInterface* a; + a->foo1(); + MicrosoftDerivedInterface* b; + b->foo2(); +} + +__int64 x7 = __int64(0); namespace If_exists_test { @@ -238,29 +238,29 @@ __if_not_exists(IF_EXISTS::Type_not) { int __if_exists_init_list() { - int array1[] = {
- 0,
- __if_exists(IF_EXISTS::Type) {2, }
- 3
- };
- - int array2[] = {
- 0,
- __if_exists(IF_EXISTS::Type_not) { this wont compile }
- 3
- };
-
- int array3[] = {
- 0,
- __if_not_exists(IF_EXISTS::Type_not) {2, }
- 3
- };
- - int array4[] = {
- 0,
- __if_not_exists(IF_EXISTS::Type) { this wont compile }
- 3
- };
+ int array1[] = { + 0, + __if_exists(IF_EXISTS::Type) {2, } + 3 + }; + + int array2[] = { + 0, + __if_exists(IF_EXISTS::Type_not) { this wont compile } + 3 + }; + + int array3[] = { + 0, + __if_not_exists(IF_EXISTS::Type_not) {2, } + 3 + }; + + int array4[] = { + 0, + __if_not_exists(IF_EXISTS::Type) { this wont compile } + 3 + }; } |