aboutsummaryrefslogtreecommitdiff
path: root/libitm/testsuite/libitm.c/dropref.c
diff options
context:
space:
mode:
Diffstat (limited to 'libitm/testsuite/libitm.c/dropref.c')
-rw-r--r--libitm/testsuite/libitm.c/dropref.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libitm/testsuite/libitm.c/dropref.c b/libitm/testsuite/libitm.c/dropref.c
new file mode 100644
index 00000000000..c9bdfff32cf
--- /dev/null
+++ b/libitm/testsuite/libitm.c/dropref.c
@@ -0,0 +1,12 @@
+/* { dg-xfail-run-if "unsupported" { *-*-* } } */
+#include <libitm.h>
+
+char *pp;
+
+int main()
+{
+ __transaction_atomic {
+ _ITM_dropReferences (pp, 555);
+ }
+ return 0;
+}