aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c b/gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c
new file mode 100644
index 000000000..302d50e5c
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c
@@ -0,0 +1,10 @@
+/* This is from PR c/25892. See Wpointer-sign.c for more details. */
+
+/* { dg-options "-Wall" } */
+
+void foo(unsigned long* ulp); /* { dg-message "note: expected '\[^\n'\]*' but argument is of type '\[^\n'\]*'" "note: expected" { target *-*-* } 5 } */
+
+
+void bar(long* lp) {
+ foo(lp); /* { dg-warning "differ in signedness" } */
+}