@@ -568,37 +568,27 @@ namespace IncDec {
568
568
return 1 ;
569
569
}
570
570
static_assert (uninit<int , true , true >(), " " ); // both-error {{not an integral constant expression}} \
571
- // ref-note {{in call to 'uninit<int, true, true>()'}} \
572
- // expected-note {{in call to 'uninit()'}}
571
+ // both-note {{in call to 'uninit<int, true, true>()'}}
573
572
static_assert (uninit<int , false , true >(), " " ); // both-error {{not an integral constant expression}} \
574
- // ref-note {{in call to 'uninit<int, false, true>()'}} \
575
- // expected-note {{in call to 'uninit()'}}
573
+ // both-note {{in call to 'uninit<int, false, true>()'}}
576
574
577
575
static_assert (uninit<float , true , true >(), " " ); // both-error {{not an integral constant expression}} \
578
- // ref-note {{in call to 'uninit<float, true, true>()'}} \
579
- // expected-note {{in call to 'uninit()'}}
576
+ // both-note {{in call to 'uninit<float, true, true>()'}}
580
577
static_assert (uninit<float , false , true >(), " " ); // both-error {{not an integral constant expression}} \
581
- // ref-note {{in call to 'uninit<float, false, true>()'}} \
582
- // expected-note {{in call to 'uninit()'}}
578
+ // both-note {{in call to 'uninit<float, false, true>()'}}
583
579
static_assert (uninit<float , true , false >(), " " ); // both-error {{not an integral constant expression}} \
584
- // ref-note {{in call to 'uninit<float, true, false>()'}} \
585
- // expected-note {{in call to 'uninit()'}}
580
+ // both-note {{in call to 'uninit<float, true, false>()'}}
586
581
static_assert (uninit<float , false , false >(), " " ); // both-error {{not an integral constant expression}} \
587
- // ref-note {{in call to 'uninit<float, false, false>()'}} \
588
- // expected-note {{in call to 'uninit()'}}
582
+ // both-note {{in call to 'uninit<float, false, false>()'}}
589
583
590
584
static_assert (uninit<int *, true , true >(), " " ); // both-error {{not an integral constant expression}} \
591
- // ref-note {{in call to 'uninit<int *, true, true>()'}} \
592
- // expected-note {{in call to 'uninit()'}}
585
+ // both-note {{in call to 'uninit<int *, true, true>()'}}
593
586
static_assert (uninit<int *, false , true >(), " " ); // both-error {{not an integral constant expression}} \
594
- // ref-note {{in call to 'uninit<int *, false, true>()'}} \
595
- // expected-note {{in call to 'uninit()'}}
587
+ // both-note {{in call to 'uninit<int *, false, true>()'}}
596
588
static_assert (uninit<int *, true , false >(), " " ); // both-error {{not an integral constant expression}} \
597
- // ref-note {{in call to 'uninit<int *, true, false>()'}} \
598
- // expected-note {{in call to 'uninit()'}}
589
+ // both-note {{in call to 'uninit<int *, true, false>()'}}
599
590
static_assert (uninit<int *, false , false >(), " " ); // both-error {{not an integral constant expression}} \
600
- // ref-note {{in call to 'uninit<int *, false, false>()'}} \
601
- // expected-note {{in call to 'uninit()'}}
591
+ // both-note {{in call to 'uninit<int *, false, false>()'}}
602
592
603
593
constexpr int OverFlow () { // both-error {{never produces a constant expression}}
604
594
int a = INT_MAX;
0 commit comments