blob: da64fc1b2d4e03d67d0bf927e52770710250054c [file] [log] [blame]
Nuno Lopes13c88c72009-12-16 16:59:22 +00001// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o %t-1.ll %s
2// RUN: FileCheck -check-prefix SANE --input-file=%t-1.ll %s
3// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -fno-assume-sane-operator-new -o %t-2.ll %s
4// RUN: FileCheck -check-prefix SANENOT --input-file=%t-2.ll %s
5
6
7class teste {
8 int A;
9 teste() : A(2) {}
Nuno Lopes13c88c72009-12-16 16:59:22 +000010};
11
12void f1() {
Nuno Lopes641fdce2009-12-17 10:15:49 +000013 // CHECK-SANE: declare noalias i8* @_Znwj(
14 // CHECK-SANENOT: declare i8* @_Znwj(
Nuno Lopes13c88c72009-12-16 16:59:22 +000015 new teste();
16}