diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 16:32:46 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:36:01 +0200 |
commit | a690aeeddc70c51b814999ec8c3d2093e85ed647 (patch) | |
tree | 4862c9d48737150b0948277f0db3fca6caa4fcaa /tests/core | |
parent | 75410f1c96a9216a2b597efec1a6128b3bc7c826 (diff) |
Use do_run_from_file() for test_direct_string_constant_usage
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/test_direct_string_constant_usage.in | 13 | ||||
-rw-r--r-- | tests/core/test_direct_string_constant_usage.out | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/core/test_direct_string_constant_usage.in b/tests/core/test_direct_string_constant_usage.in new file mode 100644 index 00000000..e43232f0 --- /dev/null +++ b/tests/core/test_direct_string_constant_usage.in @@ -0,0 +1,13 @@ + + #include <iostream> + template<int i> + void printText( const char (&text)[ i ] ) + { + std::cout << text; + } + int main() + { + printText( "some string constant" ); + return 0; + } +
\ No newline at end of file diff --git a/tests/core/test_direct_string_constant_usage.out b/tests/core/test_direct_string_constant_usage.out new file mode 100644 index 00000000..ddb4b681 --- /dev/null +++ b/tests/core/test_direct_string_constant_usage.out @@ -0,0 +1 @@ +some string constant
\ No newline at end of file |