Skip to content

Commit 67c9a80

Browse files
committed
Add test
1 parent dec91ce commit 67c9a80

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

server/test/framework/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ int main(int argc, char **argv) {
7171
testUtils::tryExecGetBuildCommands(testUtils::getRelativeTestSuitePath("object-file"), clang,
7272
testUtils::MAKE_BUILD_COMMANDS_TOOL);
7373

74+
testUtils::tryExecGetBuildCommands(testUtils::getRelativeTestSuitePath("precompiled"), clang,
75+
testUtils::MAKE_BUILD_COMMANDS_TOOL);
76+
7477
testUtils::tryExecGetBuildCommands(testUtils::getRelativeTestSuitePath("linkage-ld"), clang,
7578
testUtils::MAKE_BUILD_COMMANDS_TOOL);
7679

server/test/suites/object-file/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
all: exe
44

55
clean:
6-
rm exe lib.a lib1.o lib2.o
6+
rm exe lib.a lib1.o lib2.o source1.o
77

88
lib1.o: lib1.c
99
clang -c -o lib1.o lib1.c
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <stdlib.h>
2+
3+
int g() {
4+
return 15;
5+
}
6+
7+
int main(int argc, char *argv[]) {
8+
if (f(argc) < 5) {
9+
return 0;
10+
} else {
11+
return atoi(argv[0]);
12+
}
13+
}

0 commit comments

Comments
 (0)