aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/inline_error.c
blob: 57e60fbadef8373ab5bdd564922ca4c3d7b0b8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O0 -mno-popcnt" } */

inline int __attribute__ ((__gnu_inline__, __always_inline__, target("popcnt")))
foo () /* { dg-error "inlining failed in call to 'always_inline' .* target specific option mismatch" } */
{
  return 0;
}

int bar()
{
  return foo (); /* { dg-message "called from here" } */
}