summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileWarningAsError/warn.c
blob: 4041167ed98b3aa6e889d08e1221e55ddc5f8597 (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(void);

#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;
}