Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr71652.c

raw
1 /* { dg-do compile } */
2
3 #pragma GCC push_options
4 #pragma GCC target ("arch=generic") /* { dg-error "'generic' CPU can be used only for 'target\\(\"tune=\"\\)' attribute" } */
5
6 __attribute__((constructor)) void foo()
7 {
8 asm ("");
9 }
10
11 #pragma GCC pop_options
12
13 int main() { return 0; }