Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -o - -emit-llvm -debug-info-kind=limited %s | FileCheck %s |
Frederic Riss | 787d9d6 | 2014-08-12 04:42:23 +0000 | [diff] [blame] | 2 | |
| 3 | // This test verifies that variadic ObjC methods get the |
| 4 | // DW_TAG_unspecified_parameter marker. |
| 5 | |
| 6 | @interface Foo |
| 7 | - (void) Bar: (int) n, ...; |
| 8 | @end |
| 9 | |
| 10 | @implementation Foo |
| 11 | - (void) Bar: (int) n, ... |
| 12 | { |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 13 | // CHECK: !DISubroutineType(types: ![[NUM:[0-9]+]]) |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 14 | // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}} |
Frederic Riss | 787d9d6 | 2014-08-12 04:42:23 +0000 | [diff] [blame] | 15 | } |
| 16 | @end |