summaryrefslogtreecommitdiff
path: root/Tests/Simple/simpleWe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Simple/simpleWe.cpp')
-rw-r--r--Tests/Simple/simpleWe.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/Simple/simpleWe.cpp b/Tests/Simple/simpleWe.cpp
new file mode 100644
index 000000000..859e07c06
--- /dev/null
+++ b/Tests/Simple/simpleWe.cpp
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+class Foo
+{
+public:
+ Foo()
+ {
+ printf("This one has nonstandard extension\n");
+ }
+ int getnum() { return 0; }
+};
+
+int bar()
+{
+ Foo f;
+ return f.getnum();
+}