summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-05-15 20:31:58 -0400
committerNathan Ridge2018-05-17 20:28:36 -0400
commitc8b769ead2cf8df5a7584d0b503ec7dfcc4349fb (patch)
treeb3c02339291b0ee9e8b7b476cfd57b85960212c5
parent809aa570760680a4953f337d892ebe1b5c93d9da (diff)
downloadorg.eclipse.cdt-c8b769ead2cf8df5a7584d0b503ec7dfcc4349fb.tar.gz
org.eclipse.cdt-c8b769ead2cf8df5a7584d0b503ec7dfcc4349fb.tar.xz
org.eclipse.cdt-c8b769ead2cf8df5a7584d0b503ec7dfcc4349fb.zip
Bug 534332 - Add a testcase involving a function as well
-rw-r--r--codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java b/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
index 0bcdc83fd7..8da64b700a 100644
--- a/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
@@ -312,6 +312,7 @@ public class UnusedSymbolInFileScopeCheckerTest extends CheckerTestCase {
// static void f3() __attribute__((unused));
// static void f4() __attribute__((unused));
// static void f4() __attribute__((unused)) {}
+ // static void __attribute__((unused)) f5();
public void testAttributeUnused() throws Exception {
loadCodeAndRun(getAboveComment());
checkNoErrors();