Skip to content
Snippets Groups Projects
Commit af654345 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

A test case to test that -warn-dead-stores does not emit a warning for stores...

A test case to test that -warn-dead-stores does not emit a warning for stores to variables marked with '#pragma unused'.

llvm-svn: 67570
parent fd14fade
No related branches found
No related tags found
No related merge requests found
...@@ -167,3 +167,9 @@ int f19b(void) { // FIXME: Should this case be considered the same as f19? ...@@ -167,3 +167,9 @@ int f19b(void) { // FIXME: Should this case be considered the same as f19?
x = 1; x = 1;
return x; return x;
} }
void f20(void) {
int x = 1; // no-warning
#pragma unused(x)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment