diff options
Diffstat (limited to 'test/FrontendC/2007-09-20-GcrootAttribute.c')
-rw-r--r-- | test/FrontendC/2007-09-20-GcrootAttribute.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/FrontendC/2007-09-20-GcrootAttribute.c b/test/FrontendC/2007-09-20-GcrootAttribute.c deleted file mode 100644 index b67b474c4c..0000000000 --- a/test/FrontendC/2007-09-20-GcrootAttribute.c +++ /dev/null @@ -1,29 +0,0 @@ -// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot -// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot | count 6 -// RUN: %llvmgcc -S %s -o - | llvm-as - -typedef struct foo_s -{ - int a; -} foo, __attribute__ ((gcroot)) *foo_p; - -foo my_foo; - -int alpha () -{ - foo my_foo2 = my_foo; - - return my_foo2.a; -} - -int bar (foo a) -{ - foo_p b; - return b->a; -} - -foo_p baz (foo_p a, foo_p b, foo_p *c) -{ - a = b = *c; - return a; -} |