testsuite: fix dg-require-* order vs dg-additional-sources
[official-gcc.git] / gcc / testsuite / objc.dg / objc-nofilename-1.m
blob3ddaa6431ec0b1dd21d018fde8c73a90932e10a7
1 /* Test to make sure that file name does not appear in the binary. */
2 /* { dg-do compile { target *-*-darwin* } } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
5 #include <objc/objc.h>
7 @interface Foo { Class isa; } @end
8 @implementation Foo @end
10 @interface Bar : Foo { Class Barisa; } @end
12 @implementation Bar : Foo @end;
14 @interface FINAL : Bar { Class FINALisa; } @end
16 @implementation FINAL : Bar @end;
18 int main(int argc, char **argv)
20      return 0;
23 /* { dg-final { scan-assembler-not "objc-nofilename-1.m" } } */