[clang] [CIR][NFC] Add test for Complex imag with GUN extension (PR #167215)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:01:54 PST 2025


================
@@ -1495,3 +1495,42 @@ void calling_function_that_return_complex() {
 // OGCG: %[[A_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[A_ADDR]], i32 0, i32 1
 // OGCG: store float %[[RESULT_REAL]], ptr %[[A_REAL_PTR]], align 4
 // OGCG: store float %[[RESULT_IMAG]], ptr %[[A_IMAG_PTR]], align 4
+
+void imag_literal_with_gun_extension() {
----------------
hubert-reinterpretcast wrote:

I am guessing this is supposed to say `imag_literal_gnu_extension`?
The commit message should mention "literal" in the subject line: Add test for GNU i literal suffix for Complex imag

@AaronBallman, what is your preference on correcting this (including the commit message)? Revert and land fixed version?


https://github.com/llvm/llvm-project/pull/167215


More information about the cfe-commits mailing list