summaryrefslogtreecommitdiff
path: root/c++test.c
diff options
context:
space:
mode:
Diffstat (limited to 'c++test.c')
-rw-r--r--c++test.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/c++test.c b/c++test.c
new file mode 100644
index 000000000..7b4a0c99b
--- /dev/null
+++ b/c++test.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+struct A {
+ A() { fputs("A\n", stdout); }
+ ~A() { fputs("~A\n", stdout); }
+};
+
+A a;
+
+main()
+{
+ return 0;
+}