view gcc/testsuite/g++.dg/warn/Wdtor1.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/20145
// { dg-options "-Wnon-virtual-dtor" }
# 1 "t.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.cc"
# 1 "include/t.h" 1 3 4
// Declare the template with explicit C++ linkage in case system
// headers have implicit C linkage.
extern "C++" {
template <int> class t
{
  virtual void f();
};
}
# 2 "t.cc" 2

void f(void)
{
  t<1> h;
}