[cfe-commits] r116736 - in /cfe/trunk/test/PCH: attrs.c attrs.h

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Oct 18 12:20:06 PDT 2010


Author: akirtzidis
Date: Mon Oct 18 14:20:05 2010
New Revision: 116736

URL: http://llvm.org/viewvc/llvm-project?rev=116736&view=rev
Log:
Merge header & cpp for test/PCH/attrs.c - more convenient to keep the tests in one source file.

Removed:
    cfe/trunk/test/PCH/attrs.h
Modified:
    cfe/trunk/test/PCH/attrs.c

Modified: cfe/trunk/test/PCH/attrs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/attrs.c?rev=116736&r1=116735&r2=116736&view=diff
==============================================================================
--- cfe/trunk/test/PCH/attrs.c (original)
+++ cfe/trunk/test/PCH/attrs.c Mon Oct 18 14:20:05 2010
@@ -1,8 +1,17 @@
 // Test this without pch.
-// RUN: %clang_cc1 -include %S/attrs.h -fsyntax-only -verify %s
+// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: %clang_cc1 -emit-pch -o %t %S/attrs.h
+// RUN: %clang_cc1 -emit-pch -o %t %s
 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 
-// expected-note{{previous overload}}
+
+#ifndef HEADER
+#define HEADER
+
+int f(int) __attribute__((visibility("default"), overloadable)); // expected-note{{previous overload}}
+
+#else
+
 double f(double); // expected-error{{overloadable}}
+
+#endif

Removed: cfe/trunk/test/PCH/attrs.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/attrs.h?rev=116735&view=auto
==============================================================================
--- cfe/trunk/test/PCH/attrs.h (original)
+++ cfe/trunk/test/PCH/attrs.h (removed)
@@ -1,7 +0,0 @@
-// Header for PCH test exprs.c
-
-
-
-
-
-int f(int) __attribute__((visibility("default"), overloadable));





More information about the cfe-commits mailing list