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

« back to all changes in this revision

Viewing changes to tests/jessie/dillon2.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
   DONTRUN: FS#394
 
3
*/
 
4
typedef struct { int a; } las;
 
5
las * p;
 
6
//@ logic las** p_ref{L} = &p;
 
7
 
 
8
/*@
 
9
requires \valid(p);
 
10
assigns p->a;
 
11
*/
 
12
void f3()
 
13
{ p->a = 5; }
 
14
 
 
15
/*@
 
16
requires \valid(p);
 
17
assigns (*p_ref)->a;
 
18
*/
 
19
void g3(int * p)
 
20
{ f3(); }
 
21
 
 
22
/* 
 
23
Local Variables:
 
24
compile-command: "LC_ALL=C make -j dillon2"
 
25
End:
 
26
*/