|
1 | | -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++11 -verify=expected,both %s |
2 | | -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++20 -verify=expected,both %s |
3 | | -// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-vla -verify=ref,both %s |
4 | | -// RUN: %clang_cc1 -std=c++20 -fms-extensions -Wno-vla -verify=ref,both %s |
| 1 | +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -fexperimental-new-constant-interpreter -verify=expected,both %s |
| 2 | +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -fexperimental-new-constant-interpreter -verify=expected,both %s |
| 3 | +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -verify=ref,both %s |
| 4 | +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -verify=ref,both %s |
5 | 5 |
|
6 | 6 | #define INT_MIN (~__INT_MAX__) |
7 | 7 | #define INT_MAX __INT_MAX__ |
@@ -546,16 +546,14 @@ namespace IncDec { |
546 | 546 | // expected-note 2{{increment of uninitialized}} \ |
547 | 547 | // expected-note {{read of uninitialized}} |
548 | 548 | else |
549 | | - a++; // ref-note 2{{increment of uninitialized}} \ |
550 | | - // expected-note 2{{increment of uninitialized}} |
| 549 | + a++; // both-note 2{{increment of uninitialized}} |
551 | 550 | } else { |
552 | 551 | if (Pre) |
553 | 552 | --a; // ref-note 3{{decrement of uninitialized}} \ |
554 | 553 | // expected-note 2{{decrement of uninitialized}} \ |
555 | 554 | // expected-note {{read of uninitialized}} |
556 | 555 | else |
557 | | - a--; // ref-note 2{{decrement of uninitialized}} \ |
558 | | - // expected-note 2{{decrement of uninitialized}} |
| 556 | + a--; // both-note 2{{decrement of uninitialized}} |
559 | 557 | } |
560 | 558 | return 1; |
561 | 559 | } |
|
0 commit comments