summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileWarningAsError/warn.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CompileWarningAsError/warn.cxx')
-rw-r--r--Tests/RunCMake/CompileWarningAsError/warn.cxx17
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;
+}