compilerplugins/clang/test/datamembershadow.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 7aa2b5a041df8e71a435cccbc79ee13799ec9138
Author: Miklos Vajna <[email protected]>
Date:   Thu Nov 24 09:02:38 2016 +0100

    CompilerTest_compilerplugins_clang: fix this to work with clang-3.7
    
    Change-Id: I653b9c3aba53da421592b230bee3a9b69d3cb2d7

diff --git a/compilerplugins/clang/test/datamembershadow.cxx 
b/compilerplugins/clang/test/datamembershadow.cxx
index 663750a..24a0da9 100644
--- a/compilerplugins/clang/test/datamembershadow.cxx
+++ b/compilerplugins/clang/test/datamembershadow.cxx
@@ -8,6 +8,8 @@
  */
 
 
+// '#if CLANG_VERSION >= 30800' covers large parts of 
compilerplugins/clang/datamembershadow.cxx
+#if (__clang_major__ == 3 && __clang_minor__ >= 8) || __clang_major__ > 3
 struct Bar {
     int x; // expected-note {{superclass member here 
[loplugin:datamembershadow]}}
 };
@@ -15,5 +17,8 @@ struct Bar {
 struct Foo : public Bar {
     int x; // expected-error {{data member x is shadowing member in 
superclass, through inheritance path Foo->Bar [loplugin:datamembershadow]}}
 };
+#else
+// expected-no-diagnostics
+#endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to