[Attr] Use -fsyntax-only in test
Suggested at: https://reviews.llvm.org/D43248 llvm-svn: 326603
This commit is contained in:
parent
4925445958
commit
9010ee6376
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue