OSDN Git Service

In gcc/testsuite/:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / objc-nofilename-1.m
1 /* Test to make sure that file name does not appear in the binary. */
2 /* { dg-do compile { target *-*-darwin* } } */
3
4 #include <objc/objc.h>
5
6 @interface Foo { Class isa; } @end
7 @implementation Foo @end
8
9 @interface Bar : Foo { Class Barisa; } @end
10
11 @implementation Bar : Foo @end;
12
13 @interface FINAL : Bar { Class FINALisa; } @end
14
15 @implementation FINAL : Bar @end;
16
17 int main(int argc, char **argv)
18 {
19      return 0;
20 }
21
22 /* { dg-final { scan-assembler-not "objc-nofilename-1.m" } } */