aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr71652-2.c
blob: 6c8eaf18d6d81eb28e829ab9f40b8401e9d1fb5b (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=intel") /* { dg-error "'intel' CPU can be used only for 'target\\(\"tune=\"\\)' attribute" } */

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

#pragma GCC pop_options

int main() { return 0; }