diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-08 22:22:31 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-08 22:22:31 +0000 |
commit | 873ec2981d25ff269f8a39c7a03c3367869551b6 (patch) | |
tree | ead60a12158a17c11d44fc176f1f0ee4c8e5f0ea /test/Sema | |
parent | 05e62fb1aea0642a73ca931d01fe4b901e4a0097 (diff) | |
download | clang-873ec2981d25ff269f8a39c7a03c3367869551b6.tar.gz |
Fix three tests that weren't checking anything
Add -verify and update the test directives to match current expectations.
Also add a FIXME to an ObjC test that has expected-* directives but no -verify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/2009-03-09-WeakDeclarations-1.c | 6 | ||||
-rw-r--r-- | test/Sema/2009-04-22-UnknownSize.c | 2 | ||||
-rw-r--r-- | test/Sema/2009-07-17-VoidParameter.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/Sema/2009-03-09-WeakDeclarations-1.c b/test/Sema/2009-03-09-WeakDeclarations-1.c index f219de6b84..c0035a49b8 100644 --- a/test/Sema/2009-03-09-WeakDeclarations-1.c +++ b/test/Sema/2009-03-09-WeakDeclarations-1.c @@ -1,12 +1,12 @@ -// RUN: %clang_cc1 %s -triple i686-apple-darwin +// RUN: %clang_cc1 -verify %s -triple i686-apple-darwin // Insist upon warnings for inappropriate weak attributes. // O.K. extern int ext_weak_import __attribute__ ((__weak_import__)); // These are inappropriate, and should generate warnings: -int decl_weak_import __attribute__ ((__weak_import__)); // expected-warning {'weak_import' attribute cannot be specified on a definition} -int decl_initialized_weak_import __attribute__ ((__weak_import__)) = 13; // expected-warning {'weak_import' attribute cannot be specified on a definition} +int decl_weak_import __attribute__ ((__weak_import__)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} +int decl_initialized_weak_import __attribute__ ((__weak_import__)) = 13; // expected-warning {{'weak_import' attribute cannot be specified on a definition}} // O.K. extern int ext_f(void) __attribute__ ((__weak_import__)); diff --git a/test/Sema/2009-04-22-UnknownSize.c b/test/Sema/2009-04-22-UnknownSize.c index 9f717408b5..60bd8d2d77 100644 --- a/test/Sema/2009-04-22-UnknownSize.c +++ b/test/Sema/2009-04-22-UnknownSize.c @@ -1,4 +1,4 @@ -// RUN: not %clang_cc1 %s -emit-llvm -o - +// RUN: not %clang_cc1 -fsyntax-only -verify %s // PR2958 static struct foo s; // expected-error { tentative definition has type 'struct foo' that is never completed } struct foo *p = &s; diff --git a/test/Sema/2009-07-17-VoidParameter.c b/test/Sema/2009-07-17-VoidParameter.c index 68d1b1ec33..b838b02ab5 100644 --- a/test/Sema/2009-07-17-VoidParameter.c +++ b/test/Sema/2009-07-17-VoidParameter.c @@ -1,4 +1,4 @@ -// RUN: not %clang_cc1 -emit-llvm %s -o - +// RUN: %clang_cc1 -verify -fsyntax-only %s // PR4214 typedef void vt; -void (*func_ptr)(vt my_vt); // expected-error {argument may not have 'void' type} +void (*func_ptr)(vt my_vt); // expected-error {{argument may not have 'void' type}} |