summaryrefslogtreecommitdiffstats
path: root/tools/clang/empty_string/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang/empty_string/tests')
-rw-r--r--tools/clang/empty_string/tests/test-expected.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/clang/empty_string/tests/test-expected.cc b/tools/clang/empty_string/tests/test-expected.cc
index 7fd9613..6762e37 100644
--- a/tools/clang/empty_string/tests/test-expected.cc
+++ b/tools/clang/empty_string/tests/test-expected.cc
@@ -7,14 +7,14 @@
#include <string>
// Tests for std::string declarations.
-void TestDeclarations() { std::string a, b("abc"), c; }
+void TestDeclarations() {
+ std::string a, b("abc"), c;
+}
// Tests for std::string allocated with new.
void TestNew() {
- std::string* a = new std::string,
- *b = new std::string("abc"),
- *c = new std::string,
- *d = new std::string();
+ std::string* a = new std::string, *b = new std::string("abc"),
+ *c = new std::string, *d = new std::string();
}
// Tests for std::string construction in initializer lists.
@@ -43,3 +43,4 @@ void TestWideTemporaries(const std::wstring& reference_argument,
TestWideTemporaries(std::wstring(), std::wstring());
TestWideTemporaries(std::wstring(), std::wstring());
}
+