xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/new-alias.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -std=c++11 -o - %s | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc using size_t = decltype(sizeof(0));
4*f4a2713aSLionel Sambuc 
something(long long x)5*f4a2713aSLionel Sambuc extern "C" char *something(long long x) {
6*f4a2713aSLionel Sambuc }
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // CHECK: @_Znwm = alias i8* (i64)* @something
9*f4a2713aSLionel Sambuc void *operator new(size_t) __attribute__((alias("something")));
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc // PR16715: don't assert here.
12*f4a2713aSLionel Sambuc // CHECK: call noalias i8* @_Znwm(i64 4){{$}}
13*f4a2713aSLionel Sambuc int *pr16715 = new int;
14