[committed] [RISC-V] Skip zbs-ext-2.c for -Oz as well
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr_thumb-static.c
blob1ce566f1c154e3da4a47edc7ff80b52118e573dd
1 /* Check that a change mode to a static function is correctly handled. */
2 /* { dg-do run } */
4 static void
5 __attribute__((__noinline__))
6 foo (void)
8 __asm__ ("");
11 static void
12 __attribute__((__noinline__))
13 __attribute__((target("thumb")))
14 bar (void)
16 __asm__ ("");
19 int
20 main (void)
22 foo();
23 bar();
24 return 0;