summaryrefslogtreecommitdiffstats
path: root/test/clang-tidy/bugprone-string-constructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/clang-tidy/bugprone-string-constructor.cpp')
-rw-r--r--test/clang-tidy/bugprone-string-constructor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/clang-tidy/bugprone-string-constructor.cpp b/test/clang-tidy/bugprone-string-constructor.cpp
index 3ab4f424..9e11a32a 100644
--- a/test/clang-tidy/bugprone-string-constructor.cpp
+++ b/test/clang-tidy/bugprone-string-constructor.cpp
@@ -65,3 +65,11 @@ void Valid() {
std::string s2("test", 3);
std::string s3("test");
}
+
+namespace instantiation_dependent_exprs {
+template<typename T>
+struct S {
+ bool x;
+ std::string f() { return x ? "a" : "b"; }
+};
+}