[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Jul 17 15:18:45 UTC 2017
compilerplugins/clang/test/oncevar.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e27f2a872095a589572030d9c923d66aaa4e3179
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jul 17 17:17:27 2017 +0200
Fix test for clang-cl
...whatever it is that causes clang-cl to not analyze the template code
otherwise
Change-Id: Id4da996714fe93c454abb3669a12d8afe27b918b
diff --git a/compilerplugins/clang/test/oncevar.cxx b/compilerplugins/clang/test/oncevar.cxx
index 8c7b8d2a9e1d..5e01d1b98a21 100644
--- a/compilerplugins/clang/test/oncevar.cxx
+++ b/compilerplugins/clang/test/oncevar.cxx
@@ -22,6 +22,7 @@ template<typename T> void f() {
int i = sizeof (T) + 1; // expected-error {{var used only once, should be inlined or declared const [loplugin:oncevar]}}
call_value(i); // expected-note {{used here [loplugin:oncevar]}}
}
+template void f<int>(); // needed for clang-cl
int main() {
/* TODO
More information about the Libreoffice-commits
mailing list