aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr71652.c
blob: a6b04db600c75482340b23419d016644b7a43a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

#pragma GCC push_options
#pragma GCC target ("arch=generic") /* { dg-error "'generic' CPU can be used only for 'target\\(\"tune=\"\\)' attribute" } */

__attribute__((constructor)) void foo()
{
  asm ("");
}

#pragma GCC pop_options

int main() { return 0; }