Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:constant

3 // C++-specific tests for integral constant expressions.
20 switch(1) { // expected-warning {{no case matching constant switch condition '1'}}
21 case t:; // expected-error {{not an integral constant expression}} expected-note {{initializer of 't' is not a constant expression}}
51 static const int B = int(0.75 * 1000 * 1000); // expected-warning {{not a constant expression; folding it to a constant is a GNU extension}}
61 // This isn't an integral constant expression, but make sure it folds anyway.
63 int PR8836test[(__typeof(sizeof(int)))&reinterpret_cast<const volatile char&>((((PR8836*)0)->a))]; // expected-warning {{folded to constant array as an extension}} expected-note {{cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression}}
66 int arr[nonconst]; // expected-warning {{folded to constant array as an extension}} expected-note {{initializer of 'nonconst' is not a constant expression}}