Changeset 58960 in vbox for trunk/src/VBox/Runtime/testcase/tstRTAssertCompile.cpp
- Timestamp:
- Dec 2, 2015 10:17:04 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104474
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTAssertCompile.cpp
r57358 r58960 151 151 AssertCompileMembersSameSizeAndOffset(STRUCT1, u64, STRUCT2, u64); 152 152 153 /* 154 * Check some cdefs.h macros while where here, we'll be using 155 * AssertCompile so it's kind of related. 156 */ 157 #ifdef RT_COMPILER_SUPPORTS_VA_ARGS 158 AssertCompile(RT_COUNT_VA_ARGS() == 0); 159 AssertCompile(RT_COUNT_VA_ARGS(asdf) == 1); 160 AssertCompile(RT_COUNT_VA_ARGS(yyyy) == 1); 161 AssertCompile(RT_COUNT_VA_ARGS(_) == 1); 162 AssertCompile(RT_COUNT_VA_ARGS(1, 2, 3, 4, 5, 6, 7, 8, 9, 0) == 10); 163 #endif 153 164 return 0; 154 165 }
Note:
See TracChangeset
for help on using the changeset viewer.