X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Ftypeof-2.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Ftypeof-2.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=34d67b20fdc9b865d115e7bd49d55b8524da3d49;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/typeof-2.c b/gcc/testsuite/gcc.dg/typeof-2.c deleted file mode 100644 index 34d67b20..00000000 --- a/gcc/testsuite/gcc.dg/typeof-2.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Test typeof with __asm redirection. */ -/* { dg-do compile } */ -/* { dg-options "-O2" } */ - -extern int foo1 (int x) __asm ("baz1"); -int bar1 (int x) { return x; } -extern __typeof (bar1) foo1 __attribute ((weak, alias ("bar1"))); - -extern int foo2 (int x) __attribute__ ((const)); -extern __typeof (foo2) foo2 __asm ("baz2"); -int bar2 (int x) -{ - return foo2 (x) + foo2 (x) + foo2 (x) + foo2 (x) + foo2 (x) + foo2 (x); -} - -extern int foo3 (int x); -extern __typeof (foo3) foo3 __asm ("baz3"); -int bar3 (int x) -{ - return foo3 (x) + foo3 (x) + foo3 (x) + foo3 (x) + foo3 (x) + foo3 (x); -} - -// { dg-final { scan-assembler-not "foo1" } } -// { dg-final { scan-assembler "baz1" } } -// { dg-final { scan-assembler-not "foo2" } } -// { dg-final { scan-assembler "baz2" } } -// { dg-final { scan-assembler-not "baz2.*baz2.*baz2.*baz2.*baz2.*baz2" } } -// { dg-final { scan-assembler-not "foo3" } } -// { dg-final { scan-assembler "baz3.*baz3.*baz3.*baz3.*baz3.*baz3" } }