gcc/testsuite/g++.dg/other/pr81355.C
raw| 1 | /* { dg-do compile { target x86_64-*-* } } */ |
| 2 | |
| 3 | __attribute__((target("default"))) |
| 4 | int foo() {return 1;} |
| 5 | |
| 6 | __attribute__((target("arch=core2", ""))) |
| 7 | int foo2() {return 2;} /* { dg-warning "empty string in attribute .target." } */ |
| 8 | |
| 9 | __attribute__((target("sse4.2", "", ""))) |
| 10 | int foo3() {return 2;} /* { dg-warning "empty string in attribute .target." } */ |
| 11 | |
| 12 | int main() { |
| 13 | return foo() + foo2() + foo3(); |
| 14 | } |