blob: 0201c451deaa0023a50135eb26e354b68646dfde [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions
Chris Lattner636c5ef2009-01-16 08:21:25 +00002
3// rdar://6495941
4
5#define FOO 1
6#define BAR "2"
7
8#pragma comment(linker,"foo=" FOO) // expected-error {{pragma comment requires parenthesized identifier and optional string}}
9#pragma comment(linker," bar=" BAR)
10
11#pragma comment( user, "Compiled on " __DATE__ " at " __TIME__ )
12
13#pragma comment(foo) // expected-error {{unknown kind of pragma comment}}
14#pragma comment(compiler,) // expected-error {{pragma comment requires}}
15#define foo compiler
Chris Lattnerc7d945d2009-01-16 19:25:54 +000016#pragma comment(foo) // macro expand kind.
Chris Lattner636c5ef2009-01-16 08:21:25 +000017#pragma comment(foo) x // expected-error {{pragma comment requires}}
18
Chris Lattnerc7d945d2009-01-16 19:25:54 +000019#pragma comment(user, "foo\abar\nbaz\tsome thing")
20