Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / FrontendC++ / 2010-04-30-OptimizedMethod-Dbg.cpp
blob761c0dc097a4cde72ee03e810556aaed88990877
1 // RUN: %llvmgcc -g -S -O2 %s -o - | FileCheck %s
3 class foo {
4 public:
5 int bar(int x);
6 static int baz(int x);
7 };
9 int foo::bar(int x) {
10 // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\}]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
11 return x*4 + 1;
14 int foo::baz(int x) {
15 // CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\},]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
16 return x*4 + 1;