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 } */
12 extern void some_func (int *); /* { dg-line some_func_decl } */
14 @implementation TestMyTests
23 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
24 /* { dg-message "but argument is of type" "" { target *-*-* } some_func_decl } */
37 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
38 /* The following is disabled as it is already checked above and the testsuites seems
39 to count multiple different identical errors on the same line only once */
40 /* dg-message "but argument is of type" "" { target *-*-* } some_func_decl */
51 some_func (&j); /* { dg-warning "discards .volatile. qualifier from pointer target type" } */
52 /* The following is disabled as it is already checked above and the testsuites seems
53 to count multiple different identical errors on the same line only once */
54 /* dg-message "but argument is of type" "" { target *-*-* } some_func_decl */