]> granicus.if.org Git - clang/commitdiff
Adding a test case for nonnull being attached to something other than a function...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 17 Jan 2014 14:38:58 +0000 (14:38 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 17 Jan 2014 14:38:58 +0000 (14:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199496 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/nonnull.c

index b134b1fc665bd35437fe5fdf341a9bc2bb8ff070..3c560752749add91abf0b1e1a681f9cbca480549 100644 (file)
@@ -32,3 +32,4 @@ void test_baz() {
   baz3(0); // no-warning
 }
 
+int i __attribute__((nonnull)); // expected-warning {{'nonnull' attribute only applies to functions, methods, and parameters}}