diff --git a/src/aro/Type.zig b/src/aro/Type.zig index f48560c0..f03a01fc 100644 --- a/src/aro/Type.zig +++ b/src/aro/Type.zig @@ -2091,6 +2091,7 @@ pub const Builder = struct { }, .long => b.specifier = switch (b.specifier) { .none => .long, + .double => .long_double, .long => .long_long, .unsigned => .ulong, .signed => .long, @@ -2103,6 +2104,7 @@ pub const Builder = struct { .complex_long => .complex_long_long, .complex_slong => .complex_slong_long, .complex_ulong => .complex_ulong_long, + .complex_double => .complex_long_double, else => return b.cannotCombine(p, source_tok), }, .int128 => b.specifier = switch (b.specifier) { diff --git a/test/cases/double long.c b/test/cases/double long.c new file mode 100644 index 00000000..d95c4ad7 --- /dev/null +++ b/test/cases/double long.c @@ -0,0 +1,2 @@ +_Complex double long x; +double long y;