diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-19 20:49:38 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-19 20:49:38 +0000 |
commit | 7747ce226051791be0a03ec106d9502e3564c1af (patch) | |
tree | aee95454826c294c66952e75676eecd939ea4226 /clang/test/CodeGen/block-with-perdefinedexpr.c | |
parent | 39259ffc65556b2e848ff691f6611f896c0ed6aa (diff) | |
download | bcm5719-llvm-7747ce226051791be0a03ec106d9502e3564c1af.tar.gz bcm5719-llvm-7747ce226051791be0a03ec106d9502e3564c1af.zip |
Internal-linkage variables with constant-evaluatable initializers do not need to be emitted. (Also reduces the set of variables that need to be eagerly deserialized when using PCH / modules.)
llvm-svn: 245497
Diffstat (limited to 'clang/test/CodeGen/block-with-perdefinedexpr.c')
-rw-r--r-- | clang/test/CodeGen/block-with-perdefinedexpr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGen/block-with-perdefinedexpr.c b/clang/test/CodeGen/block-with-perdefinedexpr.c index 68fdea60f37..94d67c3b93b 100644 --- a/clang/test/CodeGen/block-with-perdefinedexpr.c +++ b/clang/test/CodeGen/block-with-perdefinedexpr.c @@ -5,6 +5,7 @@ void syslog(const char *, ...); void handler( ); +__attribute__((used)) static void (^spd)() = ^() { handler( ^(){ syslog("%s", __FUNCTION__); } ); |