From 5420bfcb78df27235e76157136aa695473d07758 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 25 Dec 2018 00:52:14 +0800 Subject: improve precompilied headerfile --- tests/projects/c++/precompiled_header/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/projects/c++/precompiled_header/src/main.cpp') diff --git a/tests/projects/c++/precompiled_header/src/main.cpp b/tests/projects/c++/precompiled_header/src/main.cpp index f0408cdf8..27d41ee50 100644 --- a/tests/projects/c++/precompiled_header/src/main.cpp +++ b/tests/projects/c++/precompiled_header/src/main.cpp @@ -2,6 +2,7 @@ int main(int argc, char** argv) { - printf("hello xmake!\n"); + std::string s("xmake"); + printf("hello %s!\n", s.c_str()); return 0; } -- cgit v1.3.1