Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | // FIXME: Check IR rather than asm, then triple is not needed. |
| 2 | // RUN: %clang -Xclang -triple=%itanium_abi_triple -g -S %s -o - | FileCheck %s |
Chris Lattner | fc8f0e1 | 2011-04-15 05:22:18 +0000 | [diff] [blame] | 3 | // Test to check presence of debug info for byval parameter. |
Devang Patel | 468e8fb | 2010-08-26 22:54:33 +0000 | [diff] [blame] | 4 | // Radar 8350436. |
| 5 | class DAG { |
| 6 | public: |
| 7 | int i; |
| 8 | int j; |
| 9 | }; |
| 10 | |
| 11 | class EVT { |
| 12 | public: |
| 13 | int a; |
| 14 | int b; |
| 15 | int c; |
| 16 | }; |
| 17 | |
| 18 | class VAL { |
| 19 | public: |
| 20 | int x; |
| 21 | int y; |
| 22 | }; |
| 23 | void foo(EVT e); |
| 24 | EVT bar(); |
| 25 | |
| 26 | void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) { |
Jyotsna Verma | bf27951 | 2013-04-01 15:59:25 +0000 | [diff] [blame] | 27 | //CHECK: .{{asciz|string}} "missing_arg" |
Devang Patel | 468e8fb | 2010-08-26 22:54:33 +0000 | [diff] [blame] | 28 | EVT e = bar(); |
| 29 | if (dl == n) |
| 30 | foo(missing_arg); |
| 31 | } |
| 32 | |