This commit is contained in:
Jacob Dufault 2017-03-05 14:16:56 -08:00
parent bf98dc56fb
commit d403d7ad96
3 changed files with 24 additions and 4 deletions

View File

@ -1,7 +1,9 @@
#include "a.h" #include "a.h"
#if RANDOM_DEFINE #if RANDOM_DEFINE
static void LocaB() { static void LocalB() {
Common(); Common();
} }
#endif // RANDOM_DEFINE #endif // RANDOM_DEFINE
static void LocalC() {}

View File

@ -2,11 +2,16 @@
{ {
"directory" : "full_tests/simple_cross_reference", "directory" : "full_tests/simple_cross_reference",
"command" : "clang -c -o a.o a.cc", "command" : "clang -c -o a.o a.cc",
"file" : "full_tests/simple_cross_reference/a.cc" "file" : "a.cc"
}, },
{ {
"directory" : "full_tests/simple_cross_reference", "directory" : "full_tests/simple_cross_reference",
"command" : "clang -DRANDOM_DEFINE -c -o b.o b.cc", "command" : "clang -DRANDOM_DEFINE -c -o b.o b.cc",
"file" : "full_tests/simple_cross_reference/b.cc" "file" : "b.cc"
},
{
"directory" : "full_tests/simple_cross_reference",
"command" : "clang -DRANDOM_DEFINE -c -o b.o b.cc",
"file" : "test.cc"
} }
] ]

View File

@ -0,0 +1,13 @@
void foo() {}
void bar() {}
void foobar();
void foobar(int a, int b) {};
class HelloWorld {
void method() {}
};
static void staticfoo() {
}