Douglas Gregor | ac72d40 | 2008-12-01 17:31:21 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only -verify |
2 | |||||
3 | void f() { | ||||
4 | int* i = __null; | ||||
5 | i = __null; | ||||
6 | int i2 = __null; | ||||
7 | |||||
8 | // Verify statically that __null is the right size | ||||
9 | int a[sizeof(typeof(__null)) == sizeof(void*)? 1 : -1]; | ||||
10 | } |