~ubuntu-branches/ubuntu/dapper/simulavr/dapper

« back to all changes in this revision

Viewing changes to test_c/deep_frame.c

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2004-04-10 13:54:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040410135417-zywapjyz252y65se
Tags: upstream-0.1.2.1
ImportĀ upstreamĀ versionĀ 0.1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* test deeply nested functions with gdb patch */
 
2
 
 
3
#include <avr/io.h>
 
4
#include "common.h"
 
5
 
 
6
void func4 (void)
 
7
{
 
8
    PORTC |= _BV(PC0);
 
9
}
 
10
 
 
11
void func3 (void)
 
12
{
 
13
    func4();
 
14
}
 
15
 
 
16
void func2 (void)
 
17
{
 
18
    func3();
 
19
}
 
20
 
 
21
void func1 (void)
 
22
{
 
23
    func2();
 
24
}
 
25
 
 
26
int main(void)
 
27
{
 
28
    func1();
 
29
 
 
30
    return 0;
 
31
}