-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new test for folder prefixed source file skips
- Loading branch information
Showing
7 changed files
with
103 additions
and
41 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
analyzer/tests/functional/skip/test_files/multidir/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
default: src/a.o src/b.o | ||
|
||
src/b.o: src/b.cpp | ||
$(CXX) -c src/b.cpp -o /dev/null | ||
|
||
src/a.o: src/a.cpp lib/lib.o | ||
$(CXX) -c src/a.cpp -o /dev/null | ||
|
||
lib/lib.o: lib/lib.cpp | ||
$(CXX) -c lib/lib.cpp -o /dev/null | ||
|
||
clean: | ||
rm -rf src/*.o lib/*.o |
6 changes: 6 additions & 0 deletions
6
analyzer/tests/functional/skip/test_files/multidir/include/lib.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef LIB_H | ||
#define LIB_H | ||
|
||
int myDiv(int x); | ||
|
||
#endif |
6 changes: 6 additions & 0 deletions
6
analyzer/tests/functional/skip/test_files/multidir/lib/lib.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "../include/lib.h" | ||
|
||
int myDiv(int x) | ||
{ | ||
return 1 / x; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "../include/lib.h" | ||
|
||
void foo() { | ||
myDiv(0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int main() { | ||
int i = 1 / 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters