Linker: Walk the call graph to report an error on missing bodies.

This commit is contained in:
John Kessenich
2016-12-08 21:01:59 -07:00
parent e795cc915c
commit 6a60c2f9ea
11 changed files with 228 additions and 8 deletions

24
Test/missingBodies.vert Normal file
View File

@@ -0,0 +1,24 @@
#version 450
void bar();
void foo() { bar(); }
void B();
void C(int);
void C(int, int) { }
void C(bool);
void A() { B(); C(1); C(true); C(1, 2); }
void main()
{
foo();
C(true);
}
int ret1();
int f1 = ret1();
int ret2() { return 3; }
int f2 = ret2();