summaryrefslogtreecommitdiff
path: root/Tests/InterfaceLinkLibraries/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/InterfaceLinkLibraries/main.cpp')
-rw-r--r--Tests/InterfaceLinkLibraries/main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/InterfaceLinkLibraries/main.cpp b/Tests/InterfaceLinkLibraries/main.cpp
new file mode 100644
index 000000000..a54076a75
--- /dev/null
+++ b/Tests/InterfaceLinkLibraries/main.cpp
@@ -0,0 +1,19 @@
+
+#ifndef FOO_LIBRARY
+#error Expected FOO_LIBRARY
+#endif
+
+#ifndef BAR_LIBRARY
+#error Expected BAR_LIBRARY
+#endif
+
+#ifdef BANG_LIBRARY
+#error Unexpected BANG_LIBRARY
+#endif
+
+#include "bar.h"
+
+int main(void)
+{
+ return foo() + bar();
+}