diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Sema/nonnull.c | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/Sema/nonnull.c')
-rw-r--r-- | test/Sema/nonnull.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/nonnull.c b/test/Sema/nonnull.c index cea8e3d0ddc4..4e6171160f64 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}} |