aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-unused-function.c
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2010-02-17 04:48:01 +0000
committerTanya Lattner <tonic@nondot.org>2010-02-17 04:48:01 +0000
commitc777221d22e2687938c061de6698ddcccbe00fdc (patch)
treeee98123433996248bb6d46137ea963674420ab34 /test/Sema/warn-unused-function.c
parent92ac9ffecd236a6be0d6ab30cef56100e56b171c (diff)
Do not add functions marked with the unused attribute to the list of unused functions to warn about. Update test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-unused-function.c')
-rw-r--r--test/Sema/warn-unused-function.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/warn-unused-function.c b/test/Sema/warn-unused-function.c
index 1a2a50e1aa..b52f676ac5 100644
--- a/test/Sema/warn-unused-function.c
+++ b/test/Sema/warn-unused-function.c
@@ -24,3 +24,7 @@ static void f7(void);
void f8(void(*a0)(void));
void f9(void) { f8(f7); }
static void f7(void) {}
+
+__attribute__((unused)) static void bar(void);
+void bar(void) { }
+