gcc/testsuite/gcc.target/loongarch/attr-model-diag.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mexplicit-relocs" } */ |
| 3 | |
| 4 | __thread int x __attribute__((model("extreme"))); /* { dg-error "attribute cannot be specified for thread-local variables" } */ |
| 5 | register int y __asm__("tp") __attribute__((model("extreme"))); /* { dg-error "attribute cannot be specified for register variables" } */ |
| 6 | int z __attribute__((model(114))); /* { dg-error "invalid argument" } */ |
| 7 | int t __attribute__((model("good"))); /* { dg-error "invalid argument" } */ |