summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileWarningAsError/warn.c
blob: cd0c2babaffa038af6267d178263bbdb6327a14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
static void unused_function();

#ifdef __SUNPRO_C
KandR(x) int x;
{
  return x;
}
#endif

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

int main(int argc, char* argv[])
{
  unsigned int unused_sign_conversion = -1;
  return 1;
}