Tests/RunCMake/CompileWarningAsError/warn.c
raw| 1 | static void unused_function(void); |
| 2 | |
| 3 | #ifdef __SUNPRO_C |
| 4 | KandR(x) int x; |
| 5 | { |
| 6 | return x; |
| 7 | } |
| 8 | #endif |
| 9 | |
| 10 | #ifdef __SUNPRO_CC |
| 11 | struct A |
| 12 | { |
| 13 | virtual ~A() throw(); |
| 14 | }; |
| 15 | struct B : public A |
| 16 | { |
| 17 | virtual ~B() throw(int); |
| 18 | }; |
| 19 | #endif |
| 20 | |
| 21 | int main(int argc, char* argv[]) |
| 22 | { |
| 23 | unsigned int unused_sign_conversion = -1; |
| 24 | return 1; |
| 25 | } |