File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -113,20 +113,17 @@ int somefunc(int i) {
113
113
114
114
/// FIXME: The following test is incorrect in the new interpreter.
115
115
/// The null pointer returns 16 from its getIntegerRepresentation().
116
+ #pragma clang diagnostic ignored "-Wpointer-to-int-cast"
116
117
struct ArrayStruct {
117
118
char n [1 ];
118
119
};
119
120
struct AA {
120
- char name2 [(int )& ((struct ArrayStruct * )0 )-> n - 1 ]; // expected-warning {{cast to smaller integer type}} \
121
- // expected-warning {{folded to constant array}} \
122
- // pedantic-expected-warning {{cast to smaller integer type}} \
121
+ char name2 [(int )& ((struct ArrayStruct * )0 )-> n - 1 ]; // expected-warning {{folded to constant array}} \
123
122
// pedantic-expected-warning {{folded to constant array}} \
124
123
// ref-error {{array size is negative}} \
125
- // ref-warning {{cast to smaller integer type}} \
126
- // pedantic-ref-error {{array size is negative}} \
127
- // pedantic-ref-warning {{cast to smaller integer type}}
124
+ // pedantic-ref-error {{array size is negative}}
128
125
};
129
126
_Static_assert (sizeof (struct AA ) == 15 , "" ); // ref-error {{failed}} \
130
- // ref-note {{1 == 15}} \
127
+ // ref-note {{ == 15}} \
131
128
// pedantic-ref-error {{failed}} \
132
- // pedantic-ref-note {{1 == 15}}
129
+ // pedantic-ref-note {{ == 15}}
You can’t perform that action at this time.
0 commit comments