r326603 - [Attr] Use -fsyntax-only in test
Joel E. Denny via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 2 11:03:27 PST 2018
Author: jdenny
Date: Fri Mar 2 11:03:27 2018
New Revision: 326603
URL: http://llvm.org/viewvc/llvm-project?rev=326603&view=rev
Log:
[Attr] Use -fsyntax-only in test
Suggested at: https://reviews.llvm.org/D43248
Modified:
cfe/trunk/test/Sema/attr-ownership.c
Modified: cfe/trunk/test/Sema/attr-ownership.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-ownership.c?rev=326603&r1=326602&r2=326603&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-ownership.c (original)
+++ cfe/trunk/test/Sema/attr-ownership.c Fri Mar 2 11:03:27 2018
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -verify
+// RUN: %clang_cc1 %s -verify -fsyntax-only
void f1(void) __attribute__((ownership_takes("foo"))); // expected-error {{'ownership_takes' attribute requires parameter 1 to be an identifier}}
void *f2(void) __attribute__((ownership_returns(foo, 1, 2))); // expected-error {{'ownership_returns' attribute takes no more than 1 argument}}
More information about the cfe-commits
mailing list