@@ -1,5 +1,6 @@
# a simple test case
PROJECT (simple)
ADD_EXECUTABLE (simple simple.cxx)
-ADD_LIBRARY(simpleLib STATIC simpleLib.cxx simpleCLib.c)
+ADD_LIBRARY(simpleLib STATIC
+ simpleLib.cxx simpleCLib.c simpleWe.cpp)
TARGET_LINK_LIBRARIES(simple simpleLib)
@@ -1,6 +1,11 @@
extern void simpleLib();
+extern "C" int FooBar();
+extern int bar();
+extern int bar1();
int main ()
{
+ FooBar();
+ bar();
simpleLib();
return 0;
}
@@ -8,4 +8,5 @@ int FooBar()
printf("Count: %d/%d\n", class, private);
+ return 0;
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+class Foo
+{
+public:
+ Foo()
+ {
+ printf("This one has nonstandard extension\n");
+ }
+};
+int bar()
+ Foo f;
+}