~ubuntu-branches/debian/sid/frama-c/sid

« back to all changes in this revision

Viewing changes to tests/security/assert.c

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy
  • Date: 2009-06-03 08:19:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090603081925-kihvxvt0wy3zc4ar
Tags: upstream-20081201.dfsg
ImportĀ upstreamĀ versionĀ 20081201.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* run.config
 
2
   GCC:
 
3
   OPT: -security-analysis -security-lattice weak -security-propagate-assertions -journal-disable
 
4
   */
 
5
 
 
6
void main() {
 
7
  int x = (int /*@ public */) 0;;
 
8
  int a = 5;
 
9
  //@ assert security_status(x) == public;
 
10
  //@ assert security_status(a) == public; // alarm
 
11
  //@ assert security_status(a) == public;
 
12
}