diff options
Diffstat (limited to 'clang/test/CodeGenCXX/blocks.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/blocks.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/blocks.cpp b/clang/test/CodeGenCXX/blocks.cpp index 921d94a138a..3d7fcfddbe2 100644 --- a/clang/test/CodeGenCXX/blocks.cpp +++ b/clang/test/CodeGenCXX/blocks.cpp @@ -203,3 +203,11 @@ namespace test6 { // CHECK-NEXT: call void @_ZN5test63barEv() // CHECK-NEXT: ret void } + +namespace test7 { + int f() { + static int n; + int *const p = &n; + return ^{ return *p; }(); + } +} |