summaryrefslogtreecommitdiff
path: root/Tests/COnly/conly.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/COnly/conly.c')
-rw-r--r--Tests/COnly/conly.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/COnly/conly.c b/Tests/COnly/conly.c
new file mode 100644
index 000000000..7214fe1bc
--- /dev/null
+++ b/Tests/COnly/conly.c
@@ -0,0 +1,23 @@
+#include "foo.h"
+
+#include "libc1.h"
+#include "libc2.h"
+
+#include <stdio.h>
+
+int main ()
+{
+ int class = 0;
+ if ( LibC1Func() != 2.0 )
+ {
+ printf("Problem with libc1\n");
+ return 1;
+ }
+ if ( LibC2Func() != 1.0 )
+ {
+ printf("Problem with libc2\n");
+ return 1;
+ }
+ printf("Foo: %s %d\n", foo, class);
+ return 0;
+}