diff options
Diffstat (limited to 'Tests/RunCMake/CompileWarningAsError/warn.cxx')
-rw-r--r-- | Tests/RunCMake/CompileWarningAsError/warn.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileWarningAsError/warn.cxx b/Tests/RunCMake/CompileWarningAsError/warn.cxx new file mode 100644 index 0000000..64a245a --- /dev/null +++ b/Tests/RunCMake/CompileWarningAsError/warn.cxx @@ -0,0 +1,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; +} |