aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors/typedef_pointer.zc
blob: 5dbbb1772db1664b11e8ca81bc0750800f0515f5 (plain) (blame)
1
2
3
4
5
6
7
namespace;

// expect: type error: initializer: expected node*, got int*
typecheck on;
struct node { int v; };
typedef node* link;
fn main() { int n = 0; link p = &n; return 0; }