summaryrefslogtreecommitdiffstats
path: root/test/Sema/nonnull.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/nonnull.c')
-rw-r--r--test/Sema/nonnull.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/nonnull.c b/test/Sema/nonnull.c
index cea8e3d..4e61711 100644
--- a/test/Sema/nonnull.c
+++ b/test/Sema/nonnull.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar://9584012
typedef struct {
@@ -19,3 +19,4 @@ int main(void) {
Class_init(obj, "Hello World");
}
+void foo(const char *str) __attribute__((nonnull("foo"))); // expected-error{{'nonnull' attribute requires parameter 1 to be an integer constant}}
OpenPOWER on IntegriCloud