re PR c++/67184 (Missed optimization with C++11 final specifier)
[official-gcc.git] / gcc / testsuite / g++.dg / other / pr81355.C
blob89d1b41958141b9abe5d11b1e0cd0436cc0ade3a
1 /* { dg-do compile { target x86_64-*-* } } */
3 __attribute__((target("default")))
4 int foo() {return 1;}
6 __attribute__((target("arch=core2", "")))
7 int foo2() {return 2;} /* { dg-warning "empty string in attribute .target." } */
9 __attribute__((target("sse4.2", "", "")))
10 int foo3() {return 2;} /* { dg-warning "empty string in attribute .target." } */
12 int main() {
13     return foo() + foo2() + foo3();