OLD | NEW |
1 /* This test code is from Wendell Baker (wbaker@comet.berkeley.edu) */ | 1 /* This test code is from Wendell Baker (wbaker@comet.berkeley.edu) */ |
2 | 2 |
3 #include <stddef.h> | 3 #include <stddef.h> |
4 | 4 |
5 int a_i; | 5 int a_i; |
6 char a_c; | 6 char a_c; |
7 double a_d; | 7 double a_d; |
8 | 8 |
9 typedef void *Pix; | 9 typedef void *Pix; |
10 | 10 |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 return 75; | 727 return 75; |
728 } | 728 } |
729 | 729 |
730 Empty<void(FunctionArg<int>)> empty; | 730 Empty<void(FunctionArg<int>)> empty; |
731 FunctionArg<int> arg; | 731 FunctionArg<int> arg; |
732 | 732 |
733 int main() | 733 int main() |
734 { | 734 { |
735 int i; | 735 int i; |
736 long l, m, n; | 736 long l, m, n; |
737 #ifdef usestubs | 737 |
738 set_debug_traps(); | |
739 breakpoint(); | |
740 #endif | |
741 i = i + 1; | 738 i = i + 1; |
742 | 739 |
743 // New tests added here | 740 // New tests added here |
744 | 741 |
745 Foo<int> fint={0,0}; | 742 Foo<int> fint={0,0}; |
746 Foo<char> fchar={0,0}; | 743 Foo<char> fchar={0,0}; |
747 Foo<volatile char *> fvpchar = {0, 0}; | 744 Foo<volatile char *> fvpchar = {0, 0}; |
748 | 745 |
749 Bar<int, 33> bint; | 746 Bar<int, 33> bint; |
750 Bar<int, (4 > 3)> bint2; | 747 Bar<int, (4 > 3)> bint2; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 | 796 |
800 intBazOne ibo; | 797 intBazOne ibo; |
801 z = ibo.baz (2, 21); | 798 z = ibo.baz (2, 21); |
802 | 799 |
803 t5i.value(); | 800 t5i.value(); |
804 | 801 |
805 arg.method(empty); | 802 arg.method(empty); |
806 | 803 |
807 return 0; | 804 return 0; |
808 } | 805 } |
OLD | NEW |