summaryrefslogtreecommitdiffstats
path: root/test/Sema/cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/cast.c')
-rw-r--r--test/Sema/cast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/cast.c b/test/Sema/cast.c
index ec19626..d2e3e0c 100644
--- a/test/Sema/cast.c
+++ b/test/Sema/cast.c
@@ -12,3 +12,7 @@ void bar() {
a = (char*)b; // expected-error {{cannot be cast to a pointer type}}
}
+long bar1(long *next) {
+ return (long)(*next)++;
+}
+
OpenPOWER on IntegriCloud