Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
llvm
/
c0f376dba2b51aacf06cfefbc1c46120bb8b725d
/
.
/
test
/
C++Frontend
/
2004-10-04-ExternalGlobalConstant.cpp.tr
blob: 48e7240ae18b4d8ca9d0a4db8e440d16a54233db [
file
] [
log
] [
blame
]
// RUN: %llvmgcc -xc++ -S -o - %s | grep %y | not grep constant
struct
Y
{
int
A
;
Y
();
};
// This global cannot be marked 'constant' because the ctor can modify it.
extern
const
Y y
;
void
foo
(...);
int
bar
()
{
foo
(&
y
);
}