r314268 - Add test forgotten in r314262.

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 26 20:23:02 PDT 2017


Author: erichkeane
Date: Tue Sep 26 20:23:02 2017
New Revision: 314268

URL: http://llvm.org/viewvc/llvm-project?rev=314268&view=rev
Log:
Add test forgotten in r314262.

Added:
    cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp   (with props)

Added: cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp?rev=314268&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp Tue Sep 26 20:23:02 2017
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-linux-gnu | FileCheck %s
+
+extern int aa __attribute__((section(".sdata")));
+// CHECK-DAG: @aa = external global i32, section ".sdata", align 4
+
+extern int bb __attribute__((section(".sdata"))) = 1;
+// CHECK-DAG: @bb = global i32 1, section ".sdata", align 4
+
+int foo() {
+  return aa + bb;
+}

Propchange: cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: cfe/trunk/test/CodeGenCXX/extern-section-attribute.cpp
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the cfe-commits mailing list