- Timestamp:
- Feb 4, 2021, 10:03:29 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 5ce9bea
- Parents:
- c292244 (diff), 9af0fe2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 1 added
- 6 edited
-
.expect/attributes.nast.x64.txt (modified) (2 diffs)
-
.expect/attributes.nast.x86.txt (modified) (2 diffs)
-
.expect/attributes.oast.x64.txt (modified) (2 diffs)
-
.expect/attributes.oast.x86.txt (modified) (2 diffs)
-
.expect/smart-pointers.txt (added)
-
attributes.cfa (modified) (2 diffs)
-
smart-pointers.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/attributes.nast.x64.txt
rc292244 ref0b456 6 6 7 7 } 8 struct __a ttribute__ ((unused)) __anonymous0 {8 struct __anonymous0 { 9 9 }; 10 10 static inline void _X12_constructorFv_S12__anonymous0_autogen___1(struct __anonymous0 *_X4_dstS12__anonymous0_1); … … 26 26 return _X4_retS12__anonymous0_1; 27 27 } 28 __attribute__ ((unused)) struct __anonymous0 _X5DummyS12__anonymous0_1; 28 29 struct __attribute__ ((unused)) Agn1; 29 30 struct __attribute__ ((unused)) Agn2 { -
tests/.expect/attributes.nast.x86.txt
rc292244 ref0b456 6 6 7 7 } 8 struct __a ttribute__ ((unused)) __anonymous0 {8 struct __anonymous0 { 9 9 }; 10 10 static inline void _X12_constructorFv_S12__anonymous0_autogen___1(struct __anonymous0 *_X4_dstS12__anonymous0_1); … … 26 26 return _X4_retS12__anonymous0_1; 27 27 } 28 __attribute__ ((unused)) struct __anonymous0 _X5DummyS12__anonymous0_1; 28 29 struct __attribute__ ((unused)) Agn1; 29 30 struct __attribute__ ((unused)) Agn2 { -
tests/.expect/attributes.oast.x64.txt
rc292244 ref0b456 6 6 7 7 } 8 struct __a ttribute__ ((unused)) __anonymous0 {8 struct __anonymous0 { 9 9 }; 10 10 static inline void _X12_constructorFv_S12__anonymous0_autogen___1(struct __anonymous0 *_X4_dstS12__anonymous0_1); … … 26 26 return _X4_retS12__anonymous0_1; 27 27 } 28 __attribute__ ((unused)) struct __anonymous0 _X5DummyS12__anonymous0_1; 28 29 struct __attribute__ ((unused)) Agn1; 29 30 struct __attribute__ ((unused)) Agn2 { -
tests/.expect/attributes.oast.x86.txt
rc292244 ref0b456 6 6 7 7 } 8 struct __a ttribute__ ((unused)) __anonymous0 {8 struct __anonymous0 { 9 9 }; 10 10 static inline void _X12_constructorFv_S12__anonymous0_autogen___1(struct __anonymous0 *_X4_dstS12__anonymous0_1); … … 26 26 return _X4_retS12__anonymous0_1; 27 27 } 28 __attribute__ ((unused)) struct __anonymous0 _X5DummyS12__anonymous0_1; 28 29 struct __attribute__ ((unused)) Agn1; 29 30 struct __attribute__ ((unused)) Agn2 { -
tests/attributes.cfa
rc292244 ref0b456 10 10 // Created On : Mon Feb 6 16:07:02 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Nov 6 17:51:12 201813 // Update Count : 1712 // Last Modified On : Mon Jan 25 21:26:41 2021 13 // Update Count : 20 14 14 // 15 15 … … 22 22 23 23 // aggregate_name 24 struct __attribute__(( unused )) {} ;24 struct __attribute__(( unused )) {} Dummy; 25 25 struct __attribute__(( unused )) Agn1; 26 26 struct __attribute__(( unused )) Agn2 {}; -
tests/smart-pointers.cfa
rc292244 ref0b456 2 2 3 3 #include <memory.hfa> 4 #include < stdlib.hfa>4 #include <assert.h> 5 5 6 6 void counter_test(void) { … … 53 53 } 54 54 55 void declare_test(void) { 56 counter_ptr(int) ptr_i0 = 3; 57 counter_ptr(char) ptr_c0 = 'a'; 58 counter_ptr(float) ptr_f0 = 3.5f; 59 counter_ptr(double) ptr_d0 = 3.5; 60 61 unique_ptr(int) ptr_i1 = 3; 62 unique_ptr(char) ptr_c1 = 'a'; 63 unique_ptr(float) ptr_f1 = 3.5f; 64 unique_ptr(double) ptr_d1 = 3.5; 65 } 66 55 67 int main(int argc, char * argv[]) { 56 68 counter_test(); 57 69 unique_test(); 58 70 pointer_equality(); 71 72 printf("done\n"); 59 73 }
Note:
See TracChangeset
for help on using the changeset viewer.