diff options
Diffstat (limited to 'compilerplugins/clang/test/passstuffbyref.cxx')
-rw-r--r-- | compilerplugins/clang/test/passstuffbyref.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/passstuffbyref.cxx b/compilerplugins/clang/test/passstuffbyref.cxx index 89f51fb1c294..2f076e58e7b7 100644 --- a/compilerplugins/clang/test/passstuffbyref.cxx +++ b/compilerplugins/clang/test/passstuffbyref.cxx @@ -26,6 +26,13 @@ void f() s = new S(v1, v2); } +struct S2 { S2(int); }; + +S2 f2() { + static int n; + return n; +} + // expected-no-diagnostics /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |