diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/c-output-template-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/c-output-template-2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/c-output-template-2.c b/gcc/testsuite/gcc.target/aarch64/c-output-template-2.c new file mode 100644 index 00000000000..16ff58d9e28 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/c-output-template-2.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ + +struct tracepoint { + int dummy; + int state; +}; +static struct tracepoint tp; + +void +test (void) +{ + __asm__ ("@ %c0" : : "i" (&tp)); +} + +/* { dg-final { scan-assembler "@ tp" } } */ |