Mercurial > illumos > onarm
view usr/src/cmd/ast/msgcc/msgcc.tst @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children |
line wrap: on
line source
# regression tests for the msgcc utility TEST 01 'basics' EXEC -c t.c NOTE 'pp:allpossible' INPUT t.c $' #include <foo-bar.h> void f(void) { #if 0 error(1, "foo bar"); #else errormsg(locale, 2, "%s: bar foo"); #endif } ' OUTPUT t.mso $'str "foo bar"\nstr "%s: bar foo"' OUTPUT - EXEC -Dfprintf=_STDIO_ -c t.c NOTE 'ignore readonly redefinitions' INPUT t.c $' #define stderr foo void f(void) { fprintf(stderr, "foo bar"); } ' OUTPUT t.mso $'str "foo bar"'