aboutsummaryrefslogtreecommitdiff
path: root/test/C++Frontend/2003-06-08-VirtualFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/C++Frontend/2003-06-08-VirtualFunctions.cpp')
-rw-r--r--test/C++Frontend/2003-06-08-VirtualFunctions.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp
new file mode 100644
index 0000000000..ea32e19612
--- /dev/null
+++ b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp
@@ -0,0 +1,23 @@
+
+
+struct foo {
+ int y;
+ foo();
+ virtual int T() = 0;
+};
+
+struct bar : public foo {
+ //int x;
+ bar();
+ int T() {}
+};
+
+//int bar::X() { return 0; }
+
+foo::foo() : y(4) {
+
+}
+
+bar::bar() {
+
+}