diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
commit | 30815c536baacc07e925f0aef23a5395883173dc (patch) | |
tree | 2cbcf22585e99f8a87d12d5ff94f392c0d266819 /test/FrontendC/2009-03-09-WeakDeclarations-1.c | |
parent | 411bd29eea3c360d5b48a18a17b5e87f5671af0e (diff) |
Diffstat (limited to 'test/FrontendC/2009-03-09-WeakDeclarations-1.c')
-rw-r--r-- | test/FrontendC/2009-03-09-WeakDeclarations-1.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/FrontendC/2009-03-09-WeakDeclarations-1.c b/test/FrontendC/2009-03-09-WeakDeclarations-1.c deleted file mode 100644 index 13ea84f7bae9..000000000000 --- a/test/FrontendC/2009-03-09-WeakDeclarations-1.c +++ /dev/null @@ -1,22 +0,0 @@ -// RUN: %llvmgcc_only %s -c -o /dev/null |& \ -// RUN: egrep {(14|15|22): warning:} | \ -// RUN: wc -l | grep --quiet 3 -// XTARGET: darwin,linux -// XFAIL: * -// END. -// Insist upon warnings for inappropriate weak attributes. -// Note the line numbers (14|15|22) embedded in the check. - -// O.K. -extern int ext_weak_import __attribute__ ((__weak_import__)); - -// These are inappropriate, and should generate warnings: -int decl_weak_import __attribute__ ((__weak_import__)); -int decl_initialized_weak_import __attribute__ ((__weak_import__)) = 13; - -// O.K. -extern int ext_f(void) __attribute__ ((__weak_import__)); - -// These are inappropriate, and should generate warnings: -int def_f(void) __attribute__ ((__weak_import__)); -int __attribute__ ((__weak_import__)) decl_f(void) {return 0;}; |