You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Show that we properly diagnose incorrect uses of nonstring.
34
34
__attribute__((nonstring)) voidfunc(void); // expected-warning {{'nonstring' attribute only applies to variables and non-static data members}}
35
35
__attribute__((nonstring("test"))) chareek1[2]; // expected-error {{'nonstring' attribute takes no arguments}}
36
-
__attribute__((nonstring)) inteek2; // expected-warning {{'nonstring' attribute only applies to fields or variables of character array type; type here is 'int'}}
36
+
__attribute__((nonstring)) inteek2; // expected-warning {{'nonstring' attribute only applies to fields or variables of character array type; type is 'int'}}
37
37
38
38
// Note, these diagnostics are separate from the "too many initializers"
39
39
// diagnostic when you overwrite more than just the null terminator.
0 commit comments