From a7f82fb3268f2331741e08cc6abc795628166d52 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 15 Oct 2013 15:40:03 +0000 Subject: Don't depend on alias to declarations. Accepting them is a bug (pr17535), not a feature. llvm-svn: 192712 --- clang/test/CodeGenCXX/new-alias.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test/CodeGenCXX/new-alias.cpp') diff --git a/clang/test/CodeGenCXX/new-alias.cpp b/clang/test/CodeGenCXX/new-alias.cpp index 1ca4897000d..7ddc1f98808 100644 --- a/clang/test/CodeGenCXX/new-alias.cpp +++ b/clang/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"))); -- cgit v1.2.3