summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/pcc/cc/ccom/tmpalloc001.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c b/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c
index 0fef7fe865a..04aaa690ea9 100644
--- a/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c
+++ b/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c
@@ -1,10 +1,17 @@
/* From Ted Unangst */
int a() { return 1; }
+int f()
+{
+ int b = 0;
+ a() + ++b;
+ return 0;
+}
+
int main()
{
int b = 0;
a() + ++b;
- printf("b %d\n", b);
+ printf("%d\n", b);
return 0;
}