aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c
blob: eefd347dc8ff71a1568270c0276337555ed4dd44 (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" } */

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

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