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