~ubuntu-branches/ubuntu/raring/apparmor/raring

« back to all changes in this revision

Viewing changes to parser/tst/simple_tests/conditional_else_2.sd

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-03-23 16:42:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070323164201-jkax6f0oku087b7l
Tags: upstream-2.0.1+510.dfsg
ImportĀ upstreamĀ versionĀ 2.0.1+510.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# taken from cond52.sd
 
2
#=DESCRIPTION hat defined in if and else clauses
 
3
#=EXRESULT PASS
 
4
 
 
5
$FOO=true
 
6
 
 
7
/bin/true {
 
8
  if $FOO {
 
9
    ^TRUE {
 
10
      /bin/true rix,
 
11
    }
 
12
  } else {
 
13
    ^TRUE {
 
14
      /bin/false rix,
 
15
    }
 
16
  }
 
17
  if not $FOO {
 
18
    ^FALSE {
 
19
      /bin/true rix,
 
20
    }
 
21
  } else {
 
22
    ^FALSE {
 
23
      /bin/false rix,
 
24
    }
 
25
  }
 
26
}