Skip to content

Commit

Permalink
Don't depend on alias to declarations.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
espindola committed Oct 15, 2013
1 parent 0ccadb2 commit 64601ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/CodeGenCXX/new-alias.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")));

Expand Down

0 comments on commit 64601ce

Please sign in to comment.