Permalink
Browse files

Test use of string literals in defines in hello_world.

  • Loading branch information...
1 parent a954db6 commit 0eee3c8d960efb6202ab03d8ccc6061ed5f7afd7 @vslavik committed Apr 8, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 tests/projects/hello_world/hello.c
  2. +1 −0 tests/projects/hello_world/hello_world.bkl
@@ -2,6 +2,6 @@
int main()
{
- printf("Hello, world!\n");
+ printf(SALUTATION ", world!\n");
return 0;
}
@@ -3,4 +3,5 @@ toolsets = gnu gnu-osx vs2010;
exe hello {
archs = x86 x86_64;
sources { hello.c }
+ defines += "SALUTATION=\"Hello\"";
}

0 comments on commit 0eee3c8

Please sign in to comment.