Devang Patel | 468e8fb | 2010-08-26 22:54:33 +0000 | [diff] [blame] | 1 | // RUN: %clang -g -S %s -o - | FileCheck %s |
Chris Lattner | fc8f0e1 | 2011-04-15 05:22:18 +0000 | [diff] [blame] | 2 | // Test to check presence of debug info for byval parameter. |
Devang Patel | 468e8fb | 2010-08-26 22:54:33 +0000 | [diff] [blame] | 3 | // Radar 8350436. |
| 4 | class DAG { |
| 5 | public: |
| 6 | int i; |
| 7 | int j; |
| 8 | }; |
| 9 | |
| 10 | class EVT { |
| 11 | public: |
| 12 | int a; |
| 13 | int b; |
| 14 | int c; |
| 15 | }; |
| 16 | |
| 17 | class VAL { |
| 18 | public: |
| 19 | int x; |
| 20 | int y; |
| 21 | }; |
| 22 | void foo(EVT e); |
| 23 | EVT bar(); |
| 24 | |
| 25 | void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) { |
Benjamin Kramer | 608b402 | 2011-11-09 12:43:30 +0000 | [diff] [blame] | 26 | //CHECK: .asciz "missing_arg" |
Devang Patel | 468e8fb | 2010-08-26 22:54:33 +0000 | [diff] [blame] | 27 | EVT e = bar(); |
| 28 | if (dl == n) |
| 29 | foo(missing_arg); |
| 30 | } |
| 31 | |