Chris Lattner | 4ef8dd6 | 2007-11-01 02:45:17 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -fsyntax-only |
2 | |||||
3 | typedef void (* fp)(void); | ||||
4 | void foo(void); | ||||
5 | fp a[1] = { foo }; | ||||
6 | |||||
Chris Lattner | 4cc6271 | 2007-11-27 21:35:27 +0000 | [diff] [blame^] | 7 | int myArray[5] = {1, 2, 3, 4, 5}; |
8 | int *myPointer2 = myArray; | ||||
9 | int *myPointer = &(myArray[2]); | ||||
10 |