summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/tm/pr46567-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/tm/pr46567-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/tm/pr46567-2.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/pr46567-2.c b/gcc/testsuite/gcc.dg/tm/pr46567-2.c
new file mode 100644
index 00000000000..bfe0078bfdb
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tm/pr46567-2.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-fgnu-tm" } */
+
+int funky();
+int global;
+
+void SeqfileGetLine()
+{
+ funky();
+}
+
+__attribute__((transaction_callable)) void readLoop()
+{
+ SeqfileGetLine();
+ if (global)
+ funky();
+
+}
OpenPOWER on IntegriCloud