| Stuart Hastings | 8612940 | 2010-06-07 21:50:54 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -g -S -O2 %s -o - | FileCheck %s | 
| Devang Patel | cde3576 | 2010-04-30 19:39:29 +0000 | [diff] [blame] | 2 |  | 
|  | 3 | class foo { | 
|  | 4 | public: | 
|  | 5 | int bar(int x); | 
|  | 6 | static int baz(int x); | 
|  | 7 | }; | 
|  | 8 |  | 
|  | 9 | int foo::bar(int x) { | 
| Devang Patel | 95ae73c | 2010-09-29 21:04:46 +0000 | [diff] [blame] | 10 | // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\}]+[}]|[}]) ; \[ DW_TAG_subprogram \]}} | 
| Devang Patel | cde3576 | 2010-04-30 19:39:29 +0000 | [diff] [blame] | 11 | return x*4 + 1; | 
|  | 12 | } | 
|  | 13 |  | 
|  | 14 | int foo::baz(int x) { | 
| Devang Patel | 95ae73c | 2010-09-29 21:04:46 +0000 | [diff] [blame] | 15 | // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\},]+[}]|[}]) ; \[ DW_TAG_subprogram \]}} | 
| Devang Patel | cde3576 | 2010-04-30 19:39:29 +0000 | [diff] [blame] | 16 | return x*4 + 1; | 
|  | 17 | } | 
|  | 18 |  |