diff options
author | Sergio Martins <smartins@kde.org> | 2018-10-21 17:49:35 +0100 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2018-10-21 17:49:35 +0100 |
commit | 9ae1b25862db24eb9820b60e493bd4931bbfbd48 (patch) | |
tree | 3628f86359fef2ee3bd49fd954b26a30d0969572 | |
parent | 3682226da9e7a9287abf735e11f0d79874849303 (diff) |
returning-void-expression: Fix unit-test on Windowsv1.4_windows_binaries
On Windows the template must be instantiated otherwise its AST
isn't visited. Not sure why.
-rw-r--r-- | tests/returning-void-expression/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/returning-void-expression/main.cpp b/tests/returning-void-expression/main.cpp index 7b5b3d58..37b7f8e3 100644 --- a/tests/returning-void-expression/main.cpp +++ b/tests/returning-void-expression/main.cpp @@ -34,3 +34,10 @@ void test6() test5<int>(); // OK return foo(); // Warning } + +struct A {}; +void foo() +{ + + test6<A>(); +}
\ No newline at end of file |