summaryrefslogtreecommitdiffstats
path: root/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/OutOfSource/OutOfSourceSubdir/simple.cxx')
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/simple.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
index e06777d..3c9be09 100644
--- a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
+++ b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
@@ -4,8 +4,14 @@
#include "testlib.h"
#include "testdp.h"
+extern int simple();
+
int main ()
-{
+{
+ if(simple() != 123)
+ {
+ return -3;
+ }
if (strcmp(animal,"SIZZLING"))
{
fprintf(stderr,"Get definitions from a subdir did not work\n");