Skip to content

Commit

Permalink
add lit test
Browse files Browse the repository at this point in the history
  • Loading branch information
YazZz1k committed Jan 31, 2024
1 parent 676deaf commit f46b672
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clang/test/CIR/CodeGen/ctor-srcloc-fix.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// RUN: %clang_cc1 -fclangir-enable -emit-cir %s -o %t.cir
// RUN: FileCheck --input-file=%t.cir %s

struct e { e(int); };
e *g = new e(0);

//CHECK: {{%.*}} = cir.const(#cir.int<1> : !u64i) : !u64i loc(#loc11)
//CHECK: {{%.*}} = cir.call @_Znwm(%1) : (!u64i) -> !cir.ptr<!void> loc(#loc6)

0 comments on commit f46b672

Please sign in to comment.