diff options
| author | Frederic Riss <friss@apple.com> | 2014-08-12 04:42:23 +0000 |
|---|---|---|
| committer | Frederic Riss <friss@apple.com> | 2014-08-12 04:42:23 +0000 |
| commit | 787d9d640ef2588da7aebb90077d86366e43ef29 (patch) | |
| tree | 0633505bd0678fbd503811134f10a834c6ba6b42 /clang/test/CodeGenObjC/debug-info-variadic-method.m | |
| parent | fab63f7791c0ea8cc5d2be83c844ab9d95a9b671 (diff) | |
| download | bcm5719-llvm-787d9d640ef2588da7aebb90077d86366e43ef29.tar.gz bcm5719-llvm-787d9d640ef2588da7aebb90077d86366e43ef29.zip | |
Debuginfo: Correctly tag variadic ObjC methods with DW_TAG_unspecified_parameter.
Fixes rdar://13690847
llvm-svn: 215423
Diffstat (limited to 'clang/test/CodeGenObjC/debug-info-variadic-method.m')
| -rw-r--r-- | clang/test/CodeGenObjC/debug-info-variadic-method.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/debug-info-variadic-method.m b/clang/test/CodeGenObjC/debug-info-variadic-method.m new file mode 100644 index 00000000000..8d49ce2b98e --- /dev/null +++ b/clang/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: metadata ![[NUM:[^,]*]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] + // CHECK: ![[NUM]] = {{metadata !{null, metadata ![^,]*, metadata ![^,]*, metadata ![^,]*, null}}} +} +@end |

