Home | History | Annotate | Download | only in FrontendC++
      1 // RUN: %llvmgcc -g -S -O2 %s -o - | FileCheck %s
      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) {
     10   // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\}]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
     11     return x*4 + 1;
     12 }
     13 
     14 int foo::baz(int x) {
     15   // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\},]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
     16     return x*4 + 1;
     17 }
     18 
     19