From: Rafael Espindola Date: Tue, 15 Oct 2013 15:40:03 +0000 (+0000) Subject: Don't depend on alias to declarations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64601ce643e27e970a6360f00b5e911aa9953f9b;p=clang Don't depend on alias to declarations. Accepting them is a bug (pr17535), not a feature. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192712 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/new-alias.cpp b/test/CodeGenCXX/new-alias.cpp index 1ca4897000..7ddc1f9880 100644 --- a/test/CodeGenCXX/new-alias.cpp +++ b/test/CodeGenCXX/new-alias.cpp @@ -2,6 +2,9 @@ using size_t = decltype(sizeof(0)); +extern "C" char *something(long long x) { +} + // CHECK: @_Znwm = alias i8* (i64)* @something void *operator new(size_t) __attribute__((alias("something")));