Author: aaronballman
Date: Fri Jan 17 08:38:58 2014
New Revision: 199496
URL: http://llvm.org/viewvc/llvm-project?rev=199496&view=rev
Log:
Adding a test case for nonnull being attached to something other than a
function, Objective-C method, or parameter.
Modified:
cfe/trunk/test/Sema/nonnull.c
Modified: cfe/trunk/test/Sema/nonnull.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/nonnull.c?rev=199496&r1=199495&r2=199496&view=diff
==============================================================================
--- cfe/trunk/test/Sema/nonnull.c (original)
+++ cfe/trunk/test/Sema/nonnull.c Fri Jan 17 08:38:58 2014
@@ -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}}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits