summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileWarningAsError/warn.cxx
blob: 64a245a2b403cc63cd318bb720541c4c935ac713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
static void unused_function();

#ifdef __SUNPRO_CC
struct A
{
  virtual ~A() throw();
};
struct B : public A
{
  virtual ~B() throw(int);
};
#endif

int main(int unused_argument, char* [])
{
  return 1;
}