diff options
| -rw-r--r-- | llvm/test/CFrontend/2007-09-05-ConstCtor.c | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-09-05-ConstCtor.c b/llvm/test/CFrontend/2007-09-05-ConstCtor.c new file mode 100644 index 00000000000..c267a590334 --- /dev/null +++ b/llvm/test/CFrontend/2007-09-05-ConstCtor.c @@ -0,0 +1,14 @@ +// RUN: %llvmgcc -xc -Os -c %s -o /dev/null +// PR1641 + +struct A { +  unsigned long l; +}; + +void bar(struct A *a); + +void bork() { +  const unsigned long vcgt = 'vcgt'; +  struct A a = { vcgt }; +  bar(&a); +}  | 

