[cfe-commits] r143706 - /cfe/trunk/test/CodeGen/debug-info-block.c

Devang Patel dpatel at apple.com
Fri Nov 4 10:12:03 PDT 2011


Author: dpatel
Date: Fri Nov  4 12:12:03 2011
New Revision: 143706

URL: http://llvm.org/viewvc/llvm-project?rev=143706&view=rev
Log:
Add new test.

Added:
    cfe/trunk/test/CodeGen/debug-info-block.c

Added: cfe/trunk/test/CodeGen/debug-info-block.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-block.c?rev=143706&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/debug-info-block.c (added)
+++ cfe/trunk/test/CodeGen/debug-info-block.c Fri Nov  4 12:12:03 2011
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fblocks -g -emit-llvm -o - %s | FileCheck %s
+// APPLE LOCAL file 5939894 */
+// Verify that the desired debugging type is generated for a structure
+//  member that is a pointer to a block. 
+
+// CHECK: __block_literal_generic{{.*}}DW_TAG_structure_type
+// CHECK: __block_descriptor{{.*}}DW_TAG_structure_type
+struct inStruct {
+  void (^genericBlockPtr)();
+} is;
+





More information about the cfe-commits mailing list