gcc/testsuite/g++.dg/ext/pragma-target2.C
raw| 1 | // PR c++/114772 |
| 2 | // { dg-do compile { target x86_64-*-* } } |
| 3 | |
| 4 | template<typename V, bool STREAMING> |
| 5 | inline __attribute__((always_inline)) |
| 6 | __attribute__((warn_unused_result)) |
| 7 | int walk_document(V visitor) {return 0;} |
| 8 | |
| 9 | template<bool STREAMING> |
| 10 | void parse_document() { |
| 11 | int r = walk_document<bool, STREAMING>(false); |
| 12 | } |
| 13 | |
| 14 | void stage2_next() { |
| 15 | parse_document<true>(); |
| 16 | } |
| 17 | |
| 18 | #pragma GCC target("pclmul") |