diff options
Diffstat (limited to 'test/CodeGenObjC/debug-info-variadic-method.m')
| -rw-r--r-- | test/CodeGenObjC/debug-info-variadic-method.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenObjC/debug-info-variadic-method.m b/test/CodeGenObjC/debug-info-variadic-method.m new file mode 100644 index 000000000000..e895953ff6b6 --- /dev/null +++ b/test/CodeGenObjC/debug-info-variadic-method.m @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -o - -emit-llvm -g %s | FileCheck %s + +// This test verifies that variadic ObjC methods get the +// DW_TAG_unspecified_parameter marker. + +@interface Foo +- (void) Bar: (int) n, ...; +@end + +@implementation Foo +- (void) Bar: (int) n, ... +{ + // CHECK: ![[NUM:[^,]*]], null, null, null} ; [ DW_TAG_subroutine_type ] + // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}} +} +@end |
