aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C b/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C
new file mode 100644
index 000000000..17e01b3d5
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr26690-1.C
@@ -0,0 +1,16 @@
+// PR c++/26690
+// { dg-do compile }
+
+struct A // { dg-message "A::A|candidate expects" }
+{
+ A (int); // { dg-message "note" }
+};
+
+void
+foo ()
+{
+ A a(0);
+#pragma omp parallel private (a) // { dg-error "no matching function" }
+ // { dg-message "candidate" "candidate note" { target *-*-* } 13 }
+ ;
+}