gcc/testsuite/g++.target/i386/mv26.C
raw| 1 | // PR c++/84059 |
| 2 | // { dg-do compile } |
| 3 | // { dg-require-ifunc "" } |
| 4 | |
| 5 | template <typename> struct a |
| 6 | { |
| 7 | int __attribute__ ((target ("arch=ivybridge"))) c (int) {return 1;} |
| 8 | int __attribute__ ((target ("default"))) c (int) { return 2; } |
| 9 | }; |
| 10 | void |
| 11 | d () |
| 12 | { |
| 13 | a<double> b; |
| 14 | b.c (2); |
| 15 | } |