aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/tm/inline-asm.c
blob: 176266893e9d5986cae52944867d7ef572dc1c5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O1 -fno-ipa-modref -fno-ipa-pure-const" } */

static inline void
inline_death ()
{
  __asm__ ("");			/* { dg-error "'asm' not allowed" } */
}

void
tranfunction ()
{
  __transaction_atomic
    {
      inline_death ();
    }
}