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