1 /* Ensure that variables declared volatile by the user (as opposed to
2 synthesized by the EH-volatization machinery) _do_ trigger
3 "discards qualifiers from target pointer type" warnings. */
5 /* { dg-options "-fobjc-exceptions" } */
6 /* { dg-do compile } */
7 /* { dg-additional-options "-Wno-objc-root-class" } */
13 extern void some_func (int *); /* { dg-line some_func_decl } */
15 @implementation TestMyTests
24 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
25 /* { dg-message "but argument is of type" "" { target *-*-* } some_func_decl } */
38 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
39 /* The following is disabled as it is already checked above and the testsuites seems
40 to count multiple different identical errors on the same line only once */
41 /* dg-message "but argument is of type" "" { target *-*-* } some_func_decl */
52 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
53 /* The following is disabled as it is already checked above and the testsuites seems
54 to count multiple different identical errors on the same line only once */
55 /* dg-message "but argument is of type" "" { target *-*-* } some_func_decl */