aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C b/gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C
new file mode 100644
index 000000000..f0d9d01e4
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/other/pr43116.C
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+extern "C" int rpl_open (const char *filename, int flags, ...) __attribute__
+((__nonnull__ (1)));
+
+namespace gnulib
+{
+ int (*const open) (const char *filename, int flags, ...) __attribute__
+ ((__nonnull__ (1))) = rpl_open;
+}