blob: ac5b78d0c9972136a2688b83ef1c7174befc3151 [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner3b1778b2002-07-23 18:25:39 +00003#include <string.h>
4#include <stdio.h>
5#include <stdlib.h>
6
7int main(int argc, char **argv) {
Jeff Cohenb02fbfc2005-04-23 21:26:11 +00008 char *C = (char*)alloca(argc);
9 strcpy(C, argv[0]);
10 puts(C);
Chris Lattner3b1778b2002-07-23 18:25:39 +000011}