~ubuntu-branches/ubuntu/quantal/apparmor/quantal-updates

« back to all changes in this revision

Viewing changes to parser/tst/simple_tests/conditional-else-if-1.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
#=DESCRIPTION conditional else
 
2
#=EXRESULT PASS
 
3
 
 
4
$FOO=true
 
5
$FALSE = false
 
6
 
 
7
/bin/true {
 
8
  ^TRUE {
 
9
    if $FOO {
 
10
      /bin/true rix,
 
11
    } else {
 
12
      if $FALSE {
 
13
        /bin/false rix,
 
14
      }
 
15
    }
 
16
  }
 
17
 
 
18
  ^FALSE {
 
19
    if not $FOO {
 
20
      /bin/true rix,
 
21
    } else {
 
22
      if not ${FALSE} {
 
23
        /bin/false rix,
 
24
      }
 
25
    }
 
26
  }
 
27
}