mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-17 13:26:08 +00:00

Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
12 lines
204 B
C++
12 lines
204 B
C++
// RUN: %clang_cc1 -emit-llvm-only -verify %s
|
|
// PR5454
|
|
#include <stddef.h>
|
|
|
|
struct X {static void * operator new(size_t size) throw(); X(int); };
|
|
int a(), b();
|
|
void b(int x)
|
|
{
|
|
new X(x ? a() : b());
|
|
}
|
|
|