| Tanya Lattner | ca21187 | 2004-11-06 22:41:00 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null |
| 2 | |||||
| Chris Lattner | 999b83e | 2002-07-23 18:25:39 +0000 | [diff] [blame] | 3 | #include <string.h> |
| 4 | #include <stdio.h> | ||||
| 5 | #include <stdlib.h> | ||||
| 6 | |||||
| 7 | int main(int argc, char **argv) { | ||||
| Jeff Cohen | 8047f13 | 2005-04-23 21:26:11 +0000 | [diff] [blame] | 8 | char *C = (char*)alloca(argc); |
| 9 | strcpy(C, argv[0]); | ||||
| 10 | puts(C); | ||||
| Chris Lattner | 999b83e | 2002-07-23 18:25:39 +0000 | [diff] [blame] | 11 | } |