~ubuntu-branches/ubuntu/karmic/kdevelop/karmic

« back to all changes in this revision

Viewing changes to debuggers/gdb/unittests/debugeerecursion.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-08-22 15:48:51 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090822154851-4dqyy2qn34aj8ed5
Tags: 4:3.9.95-0ubuntu1
* New upstream release:
  - Fixes LP: #407526
* Merge from Debian Experimental, remaining changes:
  - Conflict/replace on old -kde4 packages, this can go away in karmic+1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright 2009 Niko Sams <niko.sams@gmail.com>
 
3
 
 
4
   This library is free software; you can redistribute it and/or
 
5
   modify it under the terms of the GNU Library General Public
 
6
   License version 2 as published by the Free Software Foundation.
 
7
 
 
8
   This library is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
   Library General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU Library General Public License
 
14
   along with this library; see the file COPYING.LIB.  If not, write to
 
15
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
16
   Boston, MA 02110-1301, USA.
 
17
*/
 
18
#include <iostream>
 
19
 
 
20
void foo() {
 
21
    static int i=0;
 
22
    ++i;
 
23
    if (i < 100)
 
24
        foo();
 
25
    else
 
26
        std::cout << "Hello, world!" << std::endl;
 
27
}
 
28
 
 
29
int main() {
 
30
    foo();
 
31
    return 0;
 
32
}