comparison gcc/testsuite/g++.dg/abi/pure-virtual1.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 // Test that we don't need libsupc++ just for __cxa_pure_virtual.
2 // { dg-do link }
3 // { dg-require-weak }
4 // { dg-additional-options "-fno-rtti -nodefaultlibs -lc" }
5
6 struct A
7 {
8 int i;
9 virtual void f() = 0;
10 A(): i(0) {}
11 };
12
13 struct B: A
14 {
15 virtual void f() {}
16 };
17
18 int main()
19 {
20 B b;
21 }