ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since 77e6fcb was 148f7290, checked in by Thierry Delisle <tdelisle@…>, 9 years ago |
Propagate zero_t one_t from parser to backend
|
-
Property mode
set to
100644
|
File size:
236 bytes
|
Rev | Line | |
---|
[148f7290] | 1 | #include <fstream>
|
---|
| 2 |
|
---|
| 3 | void foo(zero_t o)
|
---|
| 4 | {
|
---|
| 5 | sout | "It's a Zero!" | endl;
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | void foo(one_t o)
|
---|
| 9 | {
|
---|
| 10 | sout | "It's a One!" | endl;
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | void foo(int o)
|
---|
| 14 | {
|
---|
| 15 | sout | "It's a Number!" | endl;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | int main()
|
---|
| 19 | {
|
---|
| 20 | foo(0);
|
---|
| 21 | foo(1);
|
---|
| 22 | foo(2);
|
---|
| 23 | return 0;
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.