File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
#include <cstddef>
2
+ #if defined(_MSC_VER) || defined(__GNUC__)
3
+ _: int == __builtin_bit_cast(const int, 0);
4
+ #endif
2
5
main: () = {
3
6
_ = alignof(int);
4
7
_ = sizeof(int);
Original file line number Diff line number Diff line change 7
7
8
8
#line 1 "mixed-function-type-argument.cpp2"
9
9
10
- #line 16 "mixed-function-type-argument.cpp2"
10
+ #line 19 "mixed-function-type-argument.cpp2"
11
11
class t ;
12
12
13
13
14
14
// === Cpp2 type definitions and function declarations ===========================
15
15
16
16
#line 1 "mixed-function-type-argument.cpp2"
17
17
#include < cstddef>
18
+ #if defined(_MSC_VER) || defined(__GNUC__)
19
+ int inline constexpr _ = __builtin_bit_cast(int const , 0 );
20
+ #line 4 "mixed-function-type-argument.cpp2"
21
+ #endif
18
22
auto main () -> int;
19
23
20
- #line 16 "mixed-function-type-argument.cpp2"
24
+ #line 19 "mixed-function-type-argument.cpp2"
21
25
class t {
22
26
public: int a;
23
27
};
@@ -27,7 +31,7 @@ class t {
27
31
28
32
#line 1 "mixed-function-type-argument.cpp2"
29
33
30
- #line 2 "mixed-function-type-argument.cpp2"
34
+ #line 5 "mixed-function-type-argument.cpp2"
31
35
auto main () -> int{
32
36
static_cast <void >(alignof (int ));
33
37
static_cast <void >(sizeof (int ));
You can’t perform that action at this time.
0 commit comments