[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / placement-new-builtin.cpp
blob5776a94dc3ad8196511d714588c79d8537111033
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
3 struct S {
4 void* operator new(__SIZE_TYPE__, char*);
5 void* operator new(__SIZE_TYPE__, __SIZE_TYPE__);
6 };
8 int main() {
9 new (__builtin_strchr) S; // expected-error {{builtin functions must be directly called}}
10 new ((__builtin_strlen)) S; // expected-error {{builtin functions must be directly called}}