aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_inline_cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_inline_cpp.cpp')
-rw-r--r--test/test_inline_cpp.cpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/test/test_inline_cpp.cpp b/test/test_inline_cpp.cpp
index b08656c..5b5278e 100644
--- a/test/test_inline_cpp.cpp
+++ b/test/test_inline_cpp.cpp
@@ -7,10 +7,19 @@
#if defined(__clang__)
# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
+# pragma clang diagnostic ignored "-Wmissing-field-initializers"
# pragma clang diagnostic ignored "-Wold-style-cast"
+# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
+# if __has_warning("-Wreserved-identifier")
+# pragma clang diagnostic ignored "-Wreserved-identifier"
+# endif
#elif defined(__GNUC__)
# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wconversion"
+# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+# pragma GCC diagnostic ignored "-Wredundant-tags"
+# pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
+# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
@@ -44,14 +53,14 @@
# endif
#endif
-#if defined(__clang__)
-# pragma clang diagnostic pop
-#elif defined(__GNUC__)
-# pragma GCC diagnostic pop
-#endif
-
int
main()
{
return 0;
}
+
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#elif defined(__GNUC__)
+# pragma GCC diagnostic pop
+#endif